Developing JAX-RPC web services
You can use the Java™ API for XML-based RPC (JAX-RPC) programming model to develop web services.
Procedure
- Set up a development environment for web services. You do not have to set up a development environment if you are using Rational® Application Developer.
-
Develop a service endpoint interface.
The service endpoint interface defines the JavaBeans or enterprise beans methods for a particular web service. The JavaBeans must implement methods that have the same signature as the methods on the service endpoint interface.
-
Develop the Java artifacts.
-
Develop a WSDL file.
The WSDL file is the description of a Java Platform, Enterprise Edition (Java EE) web service. For JAX-RPC applications, a WSDL file is required.
-
Develop JAX-RPC deployment descriptors.
Use the WSDL2Java command-line tool to create the deployment descriptor templates that are configured to map the service implementation to the JavaBeans or enterprise beans implementation.
-
Develop a WSDL file.
-
Complete the implementation of your web service application.
- For JavaBeans applications, complete the JavaBeans implementation.
- For enterprise beans applications, complete the enterprise beans implementation.
-
Configure the webservices.xml deployment
descriptor.
For JAX-RPC web services, configure the webservices.xml deployment descriptor so that the application server can process the incoming web services requests.
-
Configure the ibm-webservices-bnd.xmi
deployment descriptor.
Configure the ibm-webservices-bnd.xml deployment descriptor so that the application server can process the incoming web services requests.
-
Assemble the artifacts for your web service.
Use assembly tools provided with the application server to assemble your Java-based web services modules. If you have assembled an EAR file that contains enterprise beans modules that contain web services, use the endptEnabler command-line tool or an assembly tool before deployment to produce a web services endpoint WAR file. This tool is also used to specify whether the Web services are exposed using SOAP over Java Message Service (JMS) or SOAP over HTTP.
- Deploy the EAR file that has been configured and enabled for JAX-RPC web services onto the application server.