Operating Systems: i5/OS
             Personalize the table of contents and search results

 

Completing the JavaBeans implementation

 

After you have developed the Java artifacts necessary to develop a Web service, complete the JavaBeans implementation to assemble a Java archive (JAR) file or a 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. You need to complete this step to create the deployment descriptor templates that are configured to map the service implementation to the JavaBeans implementation. This task is a required step in developing a Web service from a Java bean.

 

Overview

When you complete the JavaBeans implementation, you are assembling a Java archive (JAR) or a WAR file that contains a JavaBeans implementation and supported classes created from the WSDL file.

 

Procedure

  1. Edit the JavaBeans implementation template, bindingImpl.java. Where binding is the name of the <wsdl:binding> element in the WSDL file.

    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 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 when developing implementation templates and bindings from a WSDL file.

 

Results

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

You need to configure the webservices.xml deployment descriptor and configure the ibm-webservices-bnd.xmi deployment descriptor so that WebSphere Application Server can process the incoming Web services requests.


}
Assembling applications
Developing Java artifacts for JAX-RPC applications from a WSDL file