WAS v8.5 > Develop applications > Develop web services - Addressing (WS-Addressing)Use the Web Services Addressing APIs: Creating an application that uses endpoint references
WAS v8.5 provides application programming interfaces for applications that have to create endpoint references and use those endpoint references to target web service endpoints.
The steps described in this task apply to servers and clients that run on WebSphere Application Server. Complete this task if you are a web service developer who needs to create endpoint references within an application, and then use these references to target web service resource instances. For example, a WSRF application developer.
- Create a web service referenced by an endpoint reference, and a client that accesses the web service. For JAX-WS applications, use the instructions in Create a JAX-WS web service application that uses Web Services Addressing. For JAX-RPC applications, use the instructions in Create a JAX-RPC web service application that uses Web Services Addressing
- Optional: We can extend the application created in the previous step so that it conforms to the Web Services Resource Framework (WSRF) specifications, by following the instructions in Create stateful web services using the Web Services Resource Framework.
Subtopics
- Create a JAX-WS web service application that uses Web Services Addressing
Web Services Addressing (WS-Addressing) aids interoperability between web services by defining a standard way to address web services and provide addressing information in messages. This task describes the steps required to create a JAX-WS web service that is accessed using a WS-Addressing endpoint reference. The task also describes the extra steps required to use stateful resources as part of the web service.- Create a JAX-RPC web service application that uses Web Services Addressing
Web Services Addressing (WS-Addressing) aids interoperability between web services by defining a standard way to address web services and provide addressing information in messages. This task describes the steps required to create a JAX-RPC web service that is accessed using a WS-Addressing endpoint reference. The task also describes the extra steps required to use stateful resources as part of the web service.- Example: Creating a web service that uses the JAX-WS Web Services Addressing API to access a generic web service resource instance
Consider an IT organization that has a network of printers that it wants to manage using web services. The organization might represent each printer as a resource that is addressed through an endpoint reference. This example shows how to code such a service using the JAX-WS Web Services Addressing (WS-Addressing) APIs provided by WAS.
Related concepts:
Web Services Addressing APIs
Related
Create stateful web services using the Web Services Resource Framework