WSDL

The Web Services Description Language (WSDL) is an XML document that describes a Web service, specifies its location, and describes the interfaces and methods (called port and operations, respectively, in WSDL-speak) that can be executed on the Web service. This is similar to how a type library is used to describe a COM component, or the role that Interface Definition Language (IDL) plays in the CORBA architecture.

WSDL Example

Listing 2.3 shows a WSDL document that describes a Web service that returns the price of a book.

Listing 2.3. WSDL Document
 <?xml version="1.0"?> <definitions name="BookPriceService" targetNamespace="http://xxxx.xxxx/bookprice.wsdl" xmlns:tns="http://xxxx.xxxx/bookprice.wsdl" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" ...

Get Java™ APIs for XML Kick Start 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.