JAX-WS endpoints are configured using one of three Spring configuration elements. The
correct element depends on what type of endpoint you are configuring and which features you wish to use.
For consumers you use the jaxws:client
element. For service providers you can
use either the jaxws:endpoint
element or the
jaxws:server
element.
The information used to define an endpoint is typically defined in the endpoint's contract. You can use the configuration element's to override the information in the contract. You can also use the configuration elements to provide information that is not provided in the contract.
![]() | Note |
---|---|
When dealing with endpoints developed using a Java-first approach it is likely that the SEI serving as the endpoint's contract is lacking information about the type of binding and transport to use. |
You must use the configuration elements to activate advanced features such as WS-RM. This is done by providing child elements to the endpoint's configuration element.