Chapter 11. Understanding How Endpoints are Defined in WSDL
Endpoints and services
The WSDL elements
serviceelement and the WSDL
serviceelement is a collection of related
portelements define the actual endpoints.
serviceelement has a single attribute,
name, that specifies a unique name. The
serviceelement is used as the parent element of a collection of related
portelements. WSDL makes no specification about how the
portelements are related. You can associate the
portelements in any manner you see fit.
portelement has a has a
bindingattribute, that specifies the binding used by the endpoint and is a reference to the
wsdl:bindingelement. It also includes the
nameattribute, which is a mandatory attribute that provides a unique name among all ports. The
portelement is the parent element of the elements that specify the actual transport details used by the endpoint. The elements used to specify the transport details are discussed in the following sections.
Adding endpoints to a contract
- Java Messaging Service