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 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>