WAS v8.5 > Develop applications > Develop web services - Notification (WS-Notification) > Develop applications that use WS-NotificationWriting 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.
This task assumes that we have the following resources:
- An installed and functioning copy of IBM Rational Application Developer, Rational Software Architect or equivalent tooling.
- The WSDL file for the endpoint that is to be exposed.
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 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.
- Create a Dynamic Web Project.
- Import and validate the WSDL file.
- Create the web service. Select File > New > Other > Web services > Web service wizard > Skeleton EJB web service.
- 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).
- Export the application.
You are now ready to deploy the application to WAS as described in Install enterprise application files with the console. In the Select installation options panel, ensure the Deploy web services option is enabled.
Related concepts:
WS-Notification
Related
Writing a WS-Notification application that does not expose 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
Develop JAX-WS web services with annotations
Reference:
WS-Notification roles and goals
WS-Notification troubleshooting tips
Writing JAX-WS applications for WS-Notification