WAS v8.5 > Develop applications > Develop web services - Notification (WS-Notification) > Develop applications that use WS-Notification

Writing a WS-Notification application that does not expose a web service endpoint

Write a Java EE application that can be run outside of the application server to make web service invocations against an external web service. This application acts as a lightweight publisher, or a pull type consumer by invoking web service operations against another web service such as the NotificationBroker provided by WebSphere Application Server.

This task assumes that we have the following resources:

To write a WS-Notification application that does not expose a web service endpoint, follow the method provided by your tooling for creating a web service implementation from a WSDL file. As an illustration, the following steps describe the method provided by Rational Software Architect for writing a JAX-RPC application. The steps are very similar for writing a JAX-WS application. For examples of JAX-WS publisher and subscriber client applications that do not expose a web service endpoint, see Writing JAX-WS applications for WS-Notification.

  1. Get the WSDL files for the service to invoke. If the target service is the notification broker service that was generated by WAS, use the dmgr console to publish the WSDL files for the service to a compressed file.

  2. Create a Dynamic Web Project with a name of your choice.
  3. Choose File > New > Other > Web services > Web services Client.

  4. Select Java Proxy.

  5. Enter or select the WSDL you obtained earlier.
  6. Choose a Client Type of "Application Client" or "Java" depending upon your requirements.

  7. Select your required security configuration.

  8. Click Finish.

  9. Use the generated proxy and stubs to make calls against the remote web service. For detailed coding examples, see Develop applications that use WS-Notification.

You are now ready to deploy the application for use in the Java EE application client container as described in Run a Java EE client application with launchClient.


Related concepts:

WS-Notification


Related


Writing a WS-Notification application that exposes a web service endpoint
Filtering the message content of publications
Example: Subscribing a WS-Notification consumer
Example: Pausing a WS-Notification subscription
Example: Publishing a WS-Notification message
Example: Creating a WS-Notification pull point
Example: Getting messages from a WS-Notification pull point
Example: Registering a WS-Notification publisher
Example: Creating a Notification consumer web service skeleton
Use WS-Notification for publish and subscribe messaging for web services
Secure WS-Notification
Develop applications that use WS-Notification
Publishing the WSDL files for a WS-Notification application to a compressed file
Develop a JAX-WS client from a WSDL file


Reference:

WS-Notification roles and goals
WS-Notification troubleshooting tips
wsimport command for JAX-WS applications

Writing JAX-WS applications for WS-Notification


+

Search Tips   |   Advanced Search