+

Search Tips   |   Advanced Search

Completing the JavaBeans implementation for JAX-RPC applications

After we have developed the Java artifacts necessary to develop a JAX-RPC web service, complete the JavaBeans implementation to assemble a JAR file or a web application archive (WAR) file based on your programming model. The resulting JAR file or WAR file contains the JavaBeans implementation and the supported classes created from the tooling.

Develop web services deployment descriptor templates for a JavaBeans implementation using the WSDL2java command-line tool. We need to complete this step to create the deployment descriptor templates configured to map the service implementation to the JavaBeans implementation.

For JAX-RPC applications, complete the JavaBeans implementation by writing the business application.


Tasks

  1. Edit the JavaBeans implementation template, bindingImpl.java. The binding is the name of the <wsdl:binding> element in the WSDL file. The JavaBeans implementation is generated by the WSDL2java command-line tool.

    1. Complete the implementation of the methods in the template.
    2. (Optional) Make changes if necessary.
    3. (Optional) Change the class name if the binding name is not acceptable.

  2. Compile all the Java classes.
  3. Assemble a Web archive (WAR) file. Assemble all the Java classes into a WAR file using web module assembly tools. Include all of the classes generated from running the WSDL2java command tool for JAX-RPC web service applications when developing implementation templates and bindings from a WSDL file.

We have now enabled the JavaBeans-based business application for JAX-RPC web services. We have a JAR file or a WAR file containing the JavaBeans implementation and supported classes created from the WSDL file.


What to do next

If we are developing a JAX-RPC web services application from JavaBeans, we need to configure the webservices.xml deployment descriptor and configure the ibm-webservices-bnd.xmi deployment descriptor so that the application server can process the incoming web services requests.


Related:

  • Development and assembly tools
  • Implement web services applications with JAX-RPC
  • Implement web services applications from existing WSDL files with JAX-RPC
  • Developing JAX-RPC web services deployment descriptor templates for a JavaBeans implementation
  • Configure the webservices.xml deployment descriptor for JAX-RPC web services
  • Configure the ibm-webservices-bnd.xmi deployment descriptor for JAX-RPC web services
  • Assembling web services applications
  • Assembling a WAR file enabled for web services from Java code
  • Assemble applications
  • WSDL2Java command for JAX-RPC applications