Completing the JavaBeans implementation for JAX-RPC applications

After you have developed the Java™ artifacts necessary to develop a Java API for XML-based RPC (JAX-RPC) Web service, you must complete the JavaBeans™ implementation to assemble a Java archive (JAR) file or a Web 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.

Before you begin

Develop Web services deployment descriptor templates for a JavaBeans implementation using the wsdl2java command-line tool. You need to complete this step to create the deployment descriptor templates that are configured to map the service implementation to the JavaBeans implementation.

About this task

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

Procedure

  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.

Results

You have now enabled the JavaBeans-based business application for JAX-RPC Web services. You 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 you are developing a JAX-RPC Web services application from JavaBeans, you 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.




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    

Terms of Use | Feedback

Last updated: Oct 20, 2010 9:57:58 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-base-dist&topic=twbs_JBimp
File name: twbs_JBimp.html