First page Back Continue Last page Graphics

Example of SOAP invocation


Notes:

If you were to peek at what goes through the wire when a SOAP invocation is made you would see something like the above illustration.
This example shows a very fine grained parameter being passed (a single account number). SOAP also allows one to just as easily pass a coarse grained piece of data such as, for example, a price list.
The first thing to note in this example is that a SOAP request is formulated as a XML document. The document is made up of an outermost element called Envelope which contains a Body element. The Envelope can optionally, also contain a Header element (not shown). The Body element will contain the actual request which in the example is getBalance. Enclosed by the getBalance element are the parameters being passed as input to this request which in this case is just the account number.