WebSphere WebSphere Application Server Network Deployment, Version 6.1.x Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

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

Write a J2EE application, containing a JSR-109 compliant 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 using the WebSphere run-time environment". This wizard guides you through the following steps:

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 application files with the console. In the Select installation options panel, ensure that the Deploy Web services option is enabled.
Related tasks
Writing a WS-Notification application that does not expose a Web service endpoint
WS-Notification - publish and subscribe messaging for Web services
Learning about WS-Notification
Securing WS-Notification
Related reference
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: Notification consumer Web service skeleton
Sharing event notification messages with other bus client applications
WS-Notification roles and goals
WS-Notification troubleshooting tips

Task topic

Terms of use | Feedback


Timestamp icon Last updated: 26 February 2009
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.pmc.nd.multiplatform.doc/tasks/tjwsn_task_adev1.html

Copyright IBM Corporation 2004, 2009. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)