+

Search Tips   |   Advanced Search

Create endpoint references using the IBM proprietary 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 v9 provides interfaces for you to create endpoint references using the IBM proprietary implementation of the WS-Addressing standard.

This task is a subtask of Create a JAX-RPC web service application that uses Web Services Addressing.

Complete this task if we are writing an application that uses the IBM proprietary WS-Addressing API. Such applications require endpoint references to target web service endpoints. When writing the application, we might not know the address of the endpoint, because the address can change when the application is deployed. By using the IBM proprietary API, we can either specify the endpoint address, or allow the product to generate it for you at run time.

We can also specify the behavior of endpoint references in a cluster environment.

To use endpoint reference objects from the standard JAX-WS API instead of the IBM proprietary equivalents, but want the extra functions provided by the IBM proprietary API, create the endpoint references using the methods described in this task and then convert them using the supplied converter classes. For example, we might want to undertake such a conversion if we have a JAX-WS service application and we are creating endpoint references that represent stateful session beans, or that have an affinity to a particular server, or are workload managed. We cannot create such endpoint references using the JAX-WS API.


Tasks

Created an endpoint reference for use by the application.


What to do next

  1. To convert the endpoint references from IBM proprietary WS-Addressing objects to standard JAX-WS WS-Addressing objects, use one of the following methods of the com.ibm.websphere.wsaddressing.jaxws21.EndpointReferenceConverter class, depending on the namespace of the endpoint reference:

    • createW3CEndpointReference(EndpointReference epr): use this method if the EndpointReference object uses the 2005/08 specification. This method creates a W3CEndpointReference object.
    • createSubmissionEndpointReference(EndpointReference epr): use this method if the EndpointReference object uses the 2004/08 specification. This method creates a SubmissionEndpointReference object.

  2. Continue with Create a JAX-RPC web service application that uses Web Services Addressing, or if you converted the endpoint reference to the standard JAX-WS API, continue with Create a JAX-WS web service application that uses Web Services Addressing.


Related:

  • Web Services Addressing: firewalls and intermediary nodes
  • Memory-to-memory replication
  • Create endpoint references using the JAX-WS Web Services Addressing API
  • Manage policy sets
  • Stateful session beans failover settings (applications)
  • Stateful session beans failover settings (EJB modules)
  • Provide HTTP endpoint URL information
  • Web Services Addressing policy set binding