Writing a WS-Notification application that exposes a web service endpoint

Write a Java EE application, containing a web service definition, that can be deployed to the application server and act as a NotificationProducer, NotificationConsumer or demand-based publisher.

Before you begin

This task assumes that you have the following resources:

About this task

To write a WS-Notification application that exposes a Web service endpoint, follow the method provided by your tooling for creating a web service implementation from a WSDL file. For example in Rational Software Architect there is a wizard in the Tutorials Gallery under "Create and deploy a WS-I compliant web service and an enterprise bean skeleton from a WSDL document by using the WebSphere® Application Server runtime environment". This wizard guides you through the following steps for writing a JAX-RPC application. The steps are very similar for writing a JAX-WS application. For an example of a JAX-WS NotificationConsumer client application that exposes a web service endpoint, see Writing JAX-WS applications for WS-Notification.

Procedure

  1. Create a Dynamic Web Project.
  2. Import and validate the WSDL file.
  3. Create the web service. Select File > New > Other > Web services > Web service wizard > Skeleton EJB web service .
  4. Implement the business methods in the generated EJB class. The methods you choose depend upon the type of endpoint that you are exposing (NotificationProducer, NotificationConsumer or demand based publisher).
  5. Export the application.

What to do next

You are now ready to deploy the application to WebSphere Application Server as described in Installing enterprise application files with the console. In the Select installation options panel, ensure that the Deploy web services option is enabled.



In this information ...


Related concepts

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Feb 5, 2014 9:49:51 PM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-mp&topic=tjwsn_task_adev1
File name: tjwsn_task_adev1.html