JAXP and Web Services

Now that you understand how to use the SAX parser to parse an XML document, how to use the DOM to read an XML document into a memory tree, and how to use XSLT to transform an XML document into another document format, how can you use this knowledge in developing Web services?

The answer to this question is that all the interactions between Web services and their clients are in the form of an XML document. For example, the Web Services Description Language (WSDL) file describes all the capabilities of a Web service; see Listing 12.10 for a sample WSDL file that describes the Stock Quote Web service.

Listing 12.10. Stock Quote WSDL File
 <?xml version="1.0"?> <definitions name="StockQuote" targetNamespace="http://sample.com/stockquote.wsdl" ...

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