January 2011
Intermediate to advanced
507 pages
13h 27m
English
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.
<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> ... |