SOAP syntax
- Föregående sida SOAP introduktion
- Nästa sida SOAP Envelope
SOAP construction module
A SOAP message is a regular XML document containing the following elements:
- Required Envelope element, which can identify this XML document as a SOAP message
- Optional Header element, containing header information
- Required Body element, containing all the call and response information
- Optional Fault element, providing information about the errors that occurred during the processing of this message
All of the above elements are declared in the default namespace for SOAP wrapping:
http://www.w3.org/2001/12/soap-envelope
och standardnamespace för SOAP-kodning och datatyper:
Grammatiska regler
Här är några viktiga grammatiska regler:
- SOAP meddelanden måste kódas med XML
- SOAP meddelanden måste använda SOAP Envelope-namespace
- SOAP meddelanden måste använda SOAP Encoding-namespace
- SOAP meddelanden får inte innehålla DTD-referenser
- SOAP meddelanden får inte innehålla XML behandlingsinstruktioner
SOAP meddelandets grundläggande struktur
<?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" <soap:Header> ... ... </soap:Header> <soap:Body> ... ... <soap:Fault> ... ... </soap:Fault> </soap:Body> </soap:Envelope>
- Föregående sida SOAP introduktion
- Nästa sida SOAP Envelope