Write a J2EE 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.
Before you begin
This task assumes that you have the following resources:
- An installed and functioning copy of IBM Rational Application Developer,
Rational Software Architect or equivalent tooling.
- Knowledge of where to find the WSDL file for the service that is to be
invoked.
About this task
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. The following steps follow
the method provided by Rational Software Architect:
Procedure
- Get the WSDL for the service that you wish to invoke. If
the target service is the notification broker inbound service that was generated
by WebSphere Application Server, use the administrative console to navigate
to service_name or bus_nameservice_name,
then use the publish WSDL files property to export the template WSDL for this
inbound service to a ZIP file.
- Create a Dynamic Web Project with a name of your choice.
- Choose .
- Select Java Proxy.
- Enter or select the WSDL you obtained earlier.
- Choose a Client Type of "Application Client" or "Java" depending
upon your requirements.
- Select your required security configuration.
- Click Finish.
- Use the generated proxy and stubs to make calls against the remote
Web service. For detailed coding examples, see Developing applications that use WS-Notification.
What to do next
You are now ready to deploy the application for use in the J2EE application
client container as described in
Running application clients.