14.5. JAX-WS Development Reference
14.5.1. Enable Web Services Addressing (WS-Addressing) Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Prerequisites
- Your application must have an existing JAX-WS service and client configuration.
Procedure 14.1. Annotate and Update client code
Annotate the service endpoint
Add the@Addressingannotation to the application's endpoint code.Example 14.28.
@AddressingannotationThis example demonstrates a regular JAX-WS endpoint with the@Addressingannotation added.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Update client code
Update the client code in the application so that it configures WS-Addressing.Example 14.29. Client configuration for WS-Addressing
This example demonstrates a regular JAX-WS client updated to configure WS-Addressing.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Result
The client and endpoint are now communicating using WS-Addressing.