Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web services - Notification (WS-Notification) > Develop applications that use WS-Notification


Write 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 WAS. 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.


Procedure

  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 administrative 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.


What to do next

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.
WS-Notification
Develop applications that use WS-Notification
Use WS-Notification for publish and subscribe messaging for web services
Secure WS-Notification
Publish the WSDL files for a WS-Notification application to a compressed file
Develop a JAX-WS client from a WSDL file


Related


WS-Notification roles and goals
WS-Notification troubleshooting tips
wsimport command for JAX-WS applications
http://www.ibm.com/developerworks/websphere/techjournal/0811_partridge/0811_partridge.html

+

Search Tips   |   Advanced Search