Chapter 5. WSDL

To use SOAP with a particular Web service, you need to know in advance how the SOAP messages are structured, which protocol will be employed (HTTP or SMTP, for example), and the Internet address of the Web service. In a word, you need documentation. For example, the BookQuote SOAP message is pretty simple, but how did you learn about it? You read about it in the preceding chapter; it's documented in this book. Listing 5-1 shows the BookQuote SOAP 1.1 request message.

Example 5-1. A BookQuote RPC/Literal SOAP Request Message

 <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mh="http://www.Monson-Haefel.com/jwsbook/BookQuote"> <soap:Body> <mh:getBookPrice> <isbn>0321146182</isbn> ...

Get J2EE™ Web Services 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.