Presentation is loading. Please wait.

Presentation is loading. Please wait.

SOAP Simple Object Access Protocol by Vinubalaji Gopal (Vinu)

Similar presentations


Presentation on theme: "SOAP Simple Object Access Protocol by Vinubalaji Gopal (Vinu)"— Presentation transcript:

1 SOAP Simple Object Access Protocol by Vinubalaji Gopal (Vinu)

2 What is SOAP? W3C Recommendation Simple Object Access Protocol XML based Can use SMTP or HTTP transport Can be used for RPC or Message exchange Works through Firewall Platform Independent

3 SOAP Participants

4 SOAP Message.........

5 SOAP Message Header is Optional meant for SOAP Intermediary

6 SOAP Message Example SOAP Sender <env:Envelope xmlns:env= "http://www.w3.org/2003/05/soap-envelope"> list SOAP Receiver

7 SOAP Message Example SOAP Receiver now <env:Envelope xmlns:env= "http://www.w3.org/2003/05/soap-envelope"> Singapore Airlines United Airlines SOAP Sender now

8 What about RPC? Messaging model is extensible SOAP defines additional elements that facilitates RPC SOAP is very flexible and lets you define any method signature. A unique URI needs to be passed which identifies the SOAP Node that contains or supports the RPC.

9 SOAP RPC Example Request <env:Envelope xmlns:env=" http://www.w3.org/2003/05/soap- envelope "> Apples

10 SOAP RPC Example Reply <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap- envelope"> 1.90

11 SOAP Fault Message env:Fault – a Subelement of env:Body two mandatory sub-elements - env:Code (which mandates env:Value) - env:Reason – Human Readable Optional env:Detail subelement element Optional env:Node subelement Optional env:Role subelement

12 SOAP RPC Fault Example Envelope and Body headers..... env:Sender Processing error End of headers

13 SOAP HTTP Bindings Relates the HTTP Response codes with SOAP responses. Provides a mechanism to specify the URI which identifies the SOAP node which “contains” or “supports” RPC.

14 HTTP Request Example GET/travelcompany.example.org/reservations? code=FT35ZBQ HTTP/1.1 Host: travelcompany.example.org Accept: text/html;q=0.5, application/soap+xml

15 HTTP Response HTTP/1.1 200 OK Content-Type: application/soap+xml; charset="utf-8" Content-Length: nnnn Singapore Airlines United Airlines

16 HTTP SOAP Fault Example Associated with a HTTP Post HTTP/1.1 500 Internal Server Error Content-Type: application/soap+xml; charset="utf-8" Content-Length: nnnn <env:Envelope...............

17 Where is it used? Key component of.Net Architecture Google services through SOAP Amazon store SOAP API Flickr Services SOAP with AJAX (Eg: W3C validator through Soap)

18 Alternatives REST – Representative State Transfer JSON RPC XML RPC WDDX – Web Distributed Data eXchange LDO – Lightweight Distributed Objects HTTP EXT (RFC 2744)

19 Links SOAP Links: http://www.w3.org/TR/soap/ http://searchwebservices.techtarget.com/searchWebServices/dow nloads/what_is_soap.swf http://searchwebservices.techtarget.com/searchWebServices/dow nloads/what_is_soap.swf http://www.soaprpc.com/faq.html http://www.w3schools.com/soap/ Soap Implementations: Apache SOAP - http://ws.apache.org/soap/http://ws.apache.org/soap/ SOAP:Lite


Download ppt "SOAP Simple Object Access Protocol by Vinubalaji Gopal (Vinu)"

Similar presentations


Ads by Google