Simple Object Access Protocol: SOAP

The Simple Object Access Protocol (SOAP) is an XML-based protocol for remote method invocation. The SOAP protocol allows you to access Web services such as weather forecasts, stock quotes, or flight-booking information in a machine readable manner. Possible applications are clients adding value by combining different related services, or providing an user interface appropriate for mobile devices.

SOAP calls consist of a request sent from a client to a server and a response from the server. Listing 10.5 shows an example SOAP request, taken from the delayed stock quote example available at http://www.xmethods.org. The <getQuote> element in the body of the message represents the method to be called on the server, ...

Get Java™ 2 Micro Edition Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.