Complete implementation for JAX-RPC applications
After we have developed the Java artifacts necessary to develop a JAX-RPC Web service, complete the EJB implementation to assemble a JAR file or a WAR file based on the model. The resulting JAR file or WAR file contains the EJBs 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 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 the 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
we 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.
Next steps
Now that we have gathered the required artifacts for developing a JAX-RPC Web service with an enterprise bean, we need to, configure the webservices.xml deployment descriptor.
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 an enterprise bean implementation
Develop EJB implementation templates and bindings from a WSDL file for JAX-RPC Web services
Set the webservices.xml deployment descriptor for JAX-RPC Web services
Assemble Web services applications
Assembling a JAR file that is enabled for Web services from an enterprise bean
Assembling applications
Related
WSDL2Java command for JAX-RPC applications