- The service element describes the network endpoints that deliver the web services.
- The endpoints can be defined by using the endpoint child element, which specifies the network address to bind the web service.
- The binding can be specified by using the binding attribute of the endpoint child element.
- The syntax for the service element and endpoint child element is:
<service name="ServiceName">
<endpoint name="PortName" binding="BindingName">
<soap:address location="URL"/>
</endpoint>
</service>
where ServiceName is the name of the service and PortName is the name of the endpoint. The BindingName refers to the binding name defined in the name attribute of the binding element.
In the code snippet, LibService is the service name and LibServicePort is the endpoint name. The LibBinding refers to the binding name defined in the name attribute of the binding element. The soap:address element within the port states that the specified port receives SOAP messages directed to the URL http://localhost:8088/school/Books/.
|