+

Search Tips   |   Advanced Search

Completing the Java Beans implementation for JAX-RPC applications


After we have developed the Java artifacts necessary to develop a JAX-RPC Web service, complete the Java Beansimplementation to assemble a JAR file or a WAR file based on the model. The resulting JAR file or WAR file contains the Java Beans implementation and the supported classes created from the tooling.

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

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

 

  1. Edit the Java Beans implementation template, bindingImpl.java.

    The binding is the name of the <wsdl:binding> element in the WSDL file. The Java Beans 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

we have now enabled the Java Beans-based business application for JAX-RPC Web services. we have a JAR file or a WAR file containing the Java Beans implementation and supported classes created from the WSDL file. .

 

Next steps

If developing a JAX-RPC Web services application from Java Beans, we need to configure the webservices.xml deployment descriptor and configure the ibm-webservices-bnd.xmi deployment descriptor so that the appserver can process the incoming Web services requests.


Assembly tools

 

Related tasks


Implement Web services applications with JAX-RPC
Implement Web services applications from existing WSDL files with JAX-RPC
Develop JAX-RPC Web services deployment descriptor templates for a Java Beans implementation
Set the webservices.xml deployment descriptor for JAX-RPC Web services
Set the ibm-webservices-bnd.xmi deployment descriptor for JAX-RPC Web services
Assemble Web services applications
Assembling a WAR file that is enabled for Web services from Java code
Assembling applications

 

Related


WSDL2Java command for JAX-RPC applications