WAS v8.5 > Develop applications > Develop web services - Addressing (WS-Addressing) > Use the Web Services Addressing APIs: Creating an application that uses endpoint references > Create a JAX-WS web service application that uses Web Services Addressing

Create endpoint references using the JAX-WS Web Services Addressing API

Endpoint references are a primary concept of the Web Services Addressing (WS-Addressing) interoperability protocol, and provide a standard mechanism to encapsulate information about specific web service endpoints. WAS v8.5 provides interfaces for you to create endpoint references using the standard JAX-WS API. This task is a subtask of Create a JAX-WS web service application that uses Web Services Addressing.

Complete this task if you are writing an application that uses the standard JAX-WS WS-Addressing API. Such applications require endpoint references to target web service endpoints. The standard JAX-WS API is designed to create only simple endpoint references, and therefore has the following restrictions:

We can overcome these restrictions using the IBM proprietary WS-Addressing API to create the endpoint references and then converting them into standard JAX-WS endpoint references that can be used by the rest of the application.


Results

We created an endpoint reference for use by the application.

  1. If required, convert the endpoint reference to an instance of the com.ibm.websphere.wsaddressing.EndpointReference class, using the createIBMEndpointReference method. For example, on a client you might want to set the FaultTo message addressing property for outbound messages. We cannot set this property using the JAX-WS API, so you must convert the endpoint reference representing the FaultTo endpoint to an instance of the com.ibm.websphere.wsaddressing.EndpointReference class, before setting it as a property on the BindingProvider object.
  2. Continue with Create a JAX-WS web service application that uses Web Services Addressing.


Related concepts:

Web Services Addressing: firewalls and intermediary nodes
IBM proprietary Web Services Addressing SPIs


Related


Create endpoint references using the JAX-WS Web Services Addressing API


Related information:

Additional Application Programming Interfaces (APIs)


+

Search Tips   |   Advanced Search