WAS v8.5 > Develop applications > Develop web services > Develop JAX-RPC web services with WSDL files (top-down)

Completing the JavaBeans implementation for JAX-RPC applications

After we have developed the Java artifacts necessary to develop a JAX-RPC web service, you must complete the JavaBeans implementation to assemble a 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 using the WSDL2java command-line tool. You need to complete this step to create the deployment descriptor templates configured to map the service implementation to the JavaBeans implementation. For JAX-RPC applications, complete the JavaBeans implementation by writing your business application.

  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.

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 the application server can process the incoming web services requests.


Related concepts:

Development and assembly tools


Related


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 JavaBeans implementation
Configure the webservices.xml deployment descriptor for JAX-RPC web services
Configure the ibm-webservices-bnd.xmi deployment descriptor for JAX-RPC web services
Assemble web services applications
Assemble a WAR file that is enabled for web services from Java code
Assemble applications


Reference:

WSDL2Java command for JAX-RPC applications


+

Search Tips   |   Advanced Search