WSDL services
The WSDL service document groups a set of related ports together. The WSDL service document is equivalent to a business service as published to a UDDI registry. You can generate a monolithic WSDL document that contains all WSDL elements, or a separate WSDL service document.
The WSDL service document contains the following elements:
- Service.
- A collection of related ports.
- Port.
- A single endpoint, which is defined as an aggregation of a binding and a network address.
The following WSDL service document is based on the StockQuoteService Sample.
<?xml version="1.0" encoding="UTF-8"?> <definitions name="StockQuoteServiceService" targetNamespace="http:///" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http:///"> <import location="StockQuoteServiceBinding.wsdl" namespace="http:///"/> <service name="StockQuoteServiceService"><!-- The port element StockQuoteServicePort contains the --> <!-- SOAP address http://localhost:8080/WebProject/servlet/rpcrouter. --> <!-- This address is the URL under which the RPC router servlet of the --> <!-- service provider's SOAP server can be reached. The port --> <!-- references the binding in the interface file. The qualified name --> <!-- binding:StockQuoteServiceBinding is used in this case since the --> <!-- interface file uses a different namespace than the implementation file. --><port binding="tns:StockQuoteServiceBinding" name="StockQuoteServicePort"> <soap:address location="http://localhost:9080/WebProject/servlet/rpcrouter"/> </port> </service> </definitions>
Related Concepts
Web services overview
Web Services Description Language (WSDL)
Related Tasks
Developing Web services
Using the Web Services ExplorerRelated Reference
Web Services Description Language (WSDL) reference
WSDL interfaces
WSDL bindings
WSDL Java bindings
WSDL EJB binding document