Latest web development tutorials

Element SOAP Envelope

Element SOAP Koperta jest obowiązkowe stosowanie elementu głównego komunikatu SOAP.


Element SOAP Envelope

Wymagana elementem SOAP Koperta jest element główny komunikatu SOAP. Można ją określić jako dokument XML komunikatu SOAP.

Przykłady

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
  ...
  Message information goes here
  ...
</soap:Envelope>


xmlns: namespace mydło

Wiadomość SOAP musi mieć przestrzeń nazw "http://www.w3.org/2001/12/soap-envelope~~HEAD=dobj" element Koperta z nim związane.

W przypadku korzystania z innej przestrzeni nazw, błąd aplikacji i odrzucić wiadomość.


Obiekt encodingStyle

SOAP atrybutem encodingStyle dla definicji typów danych stosowanych w dokumencie. Ten atrybut może pojawić się na dowolnym elemencie SOAP i będzie mieć zastosowanie do wszystkich podelementów i elementów zawartości elementu.

Komunikat SOAP ma domyślnego kodowania.

gramatyka

soap:encodingStyle="URI"

Przykłady

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
  ...
  Message information goes here
  ...
</soap:Envelope>