SOAP Message Example

To illustrate what SOAP messages look like, we'll show an example of a web service used by an online retailer that accepts a unique product identifier and returns details about the product such as the name, description, price, and availability. Listing B-7 shows an example of such a service called GetProductDetails that accepts one parameter called ProductID. The Envelope namespace will always point to http://schemas.xmlsoap.org/soap/envelope, as described in the specification.

Example. Sample SOAP Request Message from a Client
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <getProductDetails xmlns="http://www.quickreturns.com/ws"> <productID>5820948</productID> </getProductDetails> </soap:Body> ...

Get Pro WCF: Practical Microsoft SOA Implementation 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.