1 / 13

SOAP : Simple Object Access Protocol

SOAP : Simple Object Access Protocol. What is SOAP?. Protocol for information exchange between applications via Internet. W3C web services standard. Defines a way of passing XML-encoded data, including binary content. Defines a way of performing remote procedure calls (RPCs).

Télécharger la présentation

SOAP : Simple Object Access Protocol

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SOAP : Simple Object Access Protocol

  2. What is SOAP? • Protocol for information exchange between applications via Internet. • W3C web services standard. • 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: • Envelope - packages the data • Body - is the data. • A third, optional component: • Header - contains descriptions about the message, data, and/or processing instructions.

  6. Sample SOAP Message <?xml version="1.0"?> <SOAP-ENV:Envelope … > <SOAP-ENV:Body> <camera:getFeed sensor="http://observatory.leo15.edu?sensor=104"> <beginDate>04-28-2005 11:21:00</beginDate> <videoLength>30</videoLength> </ camera:getFeed> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

  7. What does this mean? … <camera:getFeed sensor="http://oservatory.leo15.edu?sensor=1045"> <beginDate>04-28-2005 11:21:00</beginDate> <videoLength>30</videoLength> </ camera:getFeed> … • The observatory may have a sensor defined as ‘camera’. • ‘camera’ has a method called getFeed() • getFeed() has two parameters: • beginDate: the instance in time you want the returning video file to begin • videoLength: how much video do you want to see

  8. What could the response be? <?xml version='1.0' ?> <SOAP-ENV:Envelope …> <SOAP-ENV:Body> <camera:getFeed id=“104"> <position>30 degrees</position> <direction>NNE</direction> <timestamp>04/29/2005 12:34:05</timestamp> <temperature>36 degrees</temperature> <!-- ... More metadata might go here... --> <videoFeed href="cid:04282005113000.mov@leo15.edu"/> </camera:getFeed> </SOAP-ENV:Body> </SOAP-ENV:Envelope> --<MIME Attachment> Content-Type: video/quicktime Content-Transfer-Encoding: binary Content-ID: <cid:04282005113000.mov@leo15.edu> ...Raw MOV image…

  9. 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 xml schemas written for MathML, and other data definitions.

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

More Related