WAS v8.5 > Develop applications > Develop web services > Develop JAX-RPC web services with WSDL files (top-down)Completing the EJB implementation for JAX-RPC applications
After we have developed the Java artifacts necessary to develop a JAX-RPC web service, you must complete the EJB implementation to assemble a JAR file or a WAR file based on your programming model. The resulting JAR file or WAR file contains the EJB implementation and the supported classes created from the tooling.
Develop EJB implementation templates and bindings from a WSDL file for JAX-RPC web services using the wsdl2java command-line tool. The deployment descriptor templates that are generated from a Web Services Description Language (WSDL) file are required to complete the EJB implementation in the web services development process. For JAX-RPC applications, complete the enterprise beans implementation by writing your business application.
- Inspect the EJB remote interface template, portType_RI.java. If necessary, modify the template. The value portType is the name of the <wsdl:portType> element in the WSDL file.
- Edit the bindingImpl.java EJB implementation template. 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 an EJB JAR file. Assemble all the Java classes into an enterprise bean JAR file using assembly tools. Include all of the classes generated from running the WSDL2Java command tool when developing implementation templates and bindings from a WSDL file.
Results
You have enabled an enterprise beans business application for JAX-RPC web services. You now have an enterprise bean JAR file containing an EJB and supporting classes created from web services artifacts.
Now that we have gathered the required artifacts for developing a JAX-RPC web service with an enterprise bean, you need to, configure the webservices.xml deployment descriptor.
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 an enterprise bean implementation
Develop EJB implementation templates and bindings from a WSDL file for JAX-RPC web services
Configure the webservices.xml deployment descriptor for JAX-RPC web services
Assemble web services applications
Assemble a JAR file that is enabled for web services from an enterprise bean
Assemble applications
Reference:
WSDL2Java command for JAX-RPC applications