EIE424 Distributed Systems and Networking Programming -PartIl 3.1 SOAP-Introduction Example <?xm1 version=11.0′ encoding=UF-8′?> <SOAP-ENV: Envelope Envelope <SOAP-一ENV: Header> Mandatory </SOAP-ENV: Header> Body Header: Optional <SOAP-ENV: Body> Mandatory SOAP-ENV: Fault> </SOAP-ENV: Fault> Fault Optional </SOAP-ENV: Body> </SOAP-ENV: Envelope>
11 EIE424 Distributed Systems and Networking Programming –Part II 3.1 SOAP – Introduction <?xml version=‘1.0’ encoding=‘UTF-8’?> <SOAP-ENV:Envelope : <SOAP-ENV:Header> : </SOAP-ENV:Header> : <SOAP-ENV:Body> : <SOAP-ENV:Fault> : : </SOAP-ENV:Fault> : </SOAP-ENV:Body> </SOAP-ENV:Envelope> Header: Optional Envelope: Mandatory Body: Mandatory Fault: Optional Example
EIE424 Distributed Systems and Networking Programming -PartIl 3.1 SOAP-Introduction SOAP message- Envelope Every SOAP message has a root Envelope element o Does not define the soap version o Rather, use namespaces to differentiate versions <SOAP-ENV: Envelope Namespace for SOAP 1.1 xmlns: SOAP-ENV= whttp://schemas.xmlsoap.org/soap/envelope/n </SOAP-ENV: Envelope> o For soap 1.2, the namespace URi is 12 http://www.w3.org/2001/09/soap-envelope
12 EIE424 Distributed Systems and Networking Programming –Part II 3.1 SOAP – Introduction SOAP message – Envelope ⚫ Every SOAP message has a root Envelope element ⚫ Does not define the SOAP version ⚫ Rather, use namespaces to differentiate versions ⚫ For SOAP 1.2, the namespace URI is – http://www.w3.org/2001/09/soap-envelope <SOAP-ENV:Envelope xmlns:SOAP-ENV= “http://schemas.xmlsoap.org/soap/envelope/” : </SOAP-ENV:Envelope> Namespace for SOAP 1.1