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 EJB 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 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 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.


Procedure

  1. 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.
  2. Edit the bindingImpl.java EJB implementation template. Where binding is the name of the <wsdl:binding> element in the WSDL file.
  3. Complete the implementation of the methods in the template.
  4. (Optional) Make changes if necessary.
  5. (Optional) Change the class name if the binding name is not acceptable.
  6. Compile all the Java classes.
  7. 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.


What to do next

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.
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 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
Assembling 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

+

Search Tips   |   Advanced Search