Presentation is loading. Please wait.

Presentation is loading. Please wait.

SOAP : Simple Object Access Protocol A ‘clean’ tool for remote procedure calls.

Similar presentations


Presentation on theme: "SOAP : Simple Object Access Protocol A ‘clean’ tool for remote procedure calls."— Presentation transcript:

1 SOAP : Simple Object Access Protocol A ‘clean’ tool for remote procedure calls.

2 What is SOAP?  Protocol for information exchange between applications via Internet.  Defines a way of passing XML- encoded data, including binary content.  Defines a way of performing remote procedure calls (RPCs).

3 Where did SOAP come from?  Coauthored by representatives of IBM, Lotus, Microsoft, DevelopMentor, and UserLand.  Later submitted to the World Wide Web Consortium (W3C).  Current SOAP development is the domain of the W3C XML Protocol Working Group

4 How does SOAP work?  Implements the request/response model of HTTP A client sends a SOAP message to a server that processes the request and responds with a SOAP message of its own.

5 What is a SOAP Message?  Two required components: 1.Envelope - packages the data 2.Body - is the data.  A third, optional component: 1.Header - contains descriptions about the message, data, and/or processing instructions.

6 Sample SOAP Message POST /weather HTTP/1.1 Content-Type: text/xml; charset=utf-8 Content-length: XXX SOAPAction: "http://bouy.atlanticocean.com/weather" <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"> 30 50

7 What is all this junk? … 30 50 …  The server has an object defined as ‘weather’.  ‘weather’ has a method called getWeatherConditions( int latitude, int longitude ) If we were processing data from the server and we wanted the weather conditions, we would request it by saying: weather.getWeatherConditions( 30, 50 );

8 What could the response be? <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 30 degrees 50 degrees 04/12/2005 12:34:05 36 degrees It's looking like the perfect storm.

9 How can SOAP send attachments? … … <publication href="cid:AtlanticOcean.pdf@atlanticocean.com"/> … … http://www.whoi.edu/sbl/liteSite.do?litesiteid=2332&articleId=3898

10 WHOI CMS & ConnectWHOI  WHOI CMS is an application that provides web-site driven services. Homepage Builder, Site Builder Lite WHOI Headlines, WHOI Housing  ConnectWHOI is an application that provides contact information services. LDAP Email Administrator

11 WHOI CMS & ConnectWHOI cont’d  Information sharing achieved by SOAP  Homepage Builder Updates to contact information makes a SOAP request to ConnectWHOI  WHY? 1.data requirements are met 2.Necessary systems receive changes 3.To comply with MVC framework of development – write once, use many

12 Why use SOAP?  Platform & Language independent.  It is a W3C standard, a standard amongst the web services community, and it’s “eXstensible”  Allows for binary data attachments.  Enforce processing requirements with the ‘mustUnderstand’ attribute.

13 Are there SOAP alternatives?  XML-RPC a precursor to SOAP designed by Dave Winer of UserLand Software (also participated in the development of SOAP) more lightweight and easier to implement less full-featured lacks support

14 Resources Gentle Introduction to SOAP A Busy Developer's Guide to SOAP 1.1 W3C Links: SOAP Specification(W3C) SOAP 1.2 Attachment(W3C)


Download ppt "SOAP : Simple Object Access Protocol A ‘clean’ tool for remote procedure calls."

Similar presentations


Ads by Google