Completing the JavaBeans implementation
This task explains how to complete the JavaBeans implementation after you have developed the deployment descriptor bindings and the bindings necessary to develop a Web service.
Before you begin
Develop JavaBeans implementation templates and bindings from a Web Services Description Language (WSDL) file. 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 JAR file that contains a JavaBeans implementation and supported classes created from the WSDL file.Complete the JavaBeans implementation by following the steps provided in this task section.
Procedure
- Edit the JavaBeans implementation template, bindingImpl.java. Where binding is the name of the <wsdl:binding> element in the WSDL file.
- Complete the implementation of the methods in the template.
- (Optional) Make changes if necessary.
- (Optional) Change the class name if the binding name is not acceptable.
- Compile all the Java classes.
- 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 when developing implementation templates and bindings from a WSDL file.
Result
You have a JAR 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.
Related Tasks
Assembling applications
Developing Web services deployment descriptor templates for a JavaBeans implementation
Configuring the webservices.xml deployment descriptor