Download presentation
Presentation is loading. Please wait.
1
The Simple Object Access Protocol
11/20/2018
2
Sources of Information
SOAP Tutorial, SoapRPC.com: Tutorials, ( A Busy Developer’s Guide To Soap1.1 DaveNet : XML-RPC for Newbies, 11/20/2018
3
Introduction “SOAP is a Remote Procedure Calling protocol that works over HTTP. The body of the request is in XML. A procedure executes on the server and the value it returns is also formatted in XML. Procedure parameters and returned values can be scalars, numbers, strings, dates, etc.; and can also be complex record and list structures.” (- A Busy Developer’s Guide To Soap1.1) 11/20/2018
4
Remote Procedure Call using HTTP
11/20/2018
5
Example of a SOAP request
POST /examples HTTP/1.1 User-Agent: Radio UserLand/7.0 (WinNT) Host: localhost:81 Content-Type: text/xml; charset=utf-8 Content-length: 474 SOAPAction: "/examples" <?xml version="1.0"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle= " xmlns: SOAP-ENC=" xmlns: SOAP-ENV=" xmlns:xsd=" xmlns:xsi=" <SOAP-ENV:Body> <m:getStateName xmlns:m=" <statenum xsi:type="xsd:int">41</statenum> </m:getStateName> </SOAP-ENV:Body> </SOAP-ENV:Envelope> 11/20/2018
6
An Example SOAP Request
11/20/2018
7
Response example HTTP/ OK Connection: close Content-Length: 499 Content-Type: text/xml; charset=utf-8 Date: Wed, 28 Mar :05:04 GMT Server: UserLand Frontier/7.0-WinNT <?xml version="1.0"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle=" xmlns:SOAP-ENC=" xmlns:SOAP-ENV=" xmlns:xsd=" xmlns:xsi=" <SOAP-ENV:Body> <m:getStateNameResponse xmlns:m=" <Result xsi:type="xsd:string">South Dakota</Result> </m:getStateNameResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> 11/20/2018
8
Response example 11/20/2018
9
Error Example HTTP/ Server Error Connection: close Content-Length: 511 Content-Type: text/xml; charset=utf-8 Date: Wed, 28 Mar :06:32 GMT Server: UserLand Frontier/7.0-WinNT <?xml version="1.0"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle=" xmlns:SOAP-ENV=" xmlns:xsd=" xmlns:xsi=" <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring>Can't call getStateName because there are too many parameters.</faultstring> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> 11/20/2018
10
Error Example 11/20/2018
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.