Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web services > Develop JAX-RPC web services with WSDL files (top down)
Complete the JavaBeans implementation for JAX-RPC applications
After we have developed the Java artifacts necessary to develop a JAX-RPC web service, 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 that are configured to map the service implementation to the JavaBeans implementation.For JAX-RPC applications, complete the JavaBeans implementation by writing your business application.
Procedure
- 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.
- 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 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 you are developing a JAX-RPC web services application from JavaBeans, configure the webservices.xml deployment descriptor and configure the ibm-webservices-bnd.xmi deployment descriptor so that the application server can process the incoming web services requests.
Assembly tools
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
Assembling 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