+

Search Tips   |   Advanced Search

Complete 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 the 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 the 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.


    What to do next

    If we are developing a JAX-RPC web services application from JavaBeans, we need to configure webservices.xml and configure the ibm-webservices-bnd.xmi deployment descriptor so that the application server can process the incoming web services requests.


    Related concepts

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

  • WSDL2Java command for JAX-RPC applications