Completing the JavaBeans implementation

After you have developed the Java artifacts necessary to develop a 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

New or updated for this feature pack For Java API for XML-Based Web Services (JAX-WS) Web service applications, develop Java artifacts for JAX-WS applications and optionally generate a WSDL file using the wsgen command-line tool.

For Java API for XML-based RPC (JAX-RPC) Web service applications, develop Web services deployment descriptor templates for a JavaBeans implementation using the wsdl2java command-line tool.

About this task

New or updated for this feature pack For JAX-WS applications, complete the JavaBeans implementation by writing your business application.

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

Procedure

  1. New or updated for this feature pack For JAX-WS applications, write the JavaBeans implementation.. The JavaBeans implementation is not generated by JAX-WS tooling.
  2. For JAX-RPC applications, 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.
  3. Compile all the Java classes.
  4. 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 wsgen or wsimport command tools for JAX-WS Web service applications or the WSDL2Java command tool for JAX-RPC Web service applications when developing implementation templates and bindings from a WSDL file.

Results

New or updated for this feature pack For JAX-WS applications, you can now enable the JavaBeans-based business application for Web services.

For JAX-RPC applications, you can now enable the JavaBeans-based business application for Web services.

.

What to do next

New or updated for this feature pack If you are developing a JAX-WS Web service application from JavaBeans, assemble a WAR file that is enabled for Web services from Java code.

If you are developing a JAX-RPC Web service 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 ...


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 Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 1:23:07 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=twbs_JBimp
File name: twbs_JBimp.html