Develop Web services applications from JavaBeans

 

+

Search Tips   |   Advanced Search

 

 

Overview

You can develop a JAX-RPC Web service from JavaBeans. You can also develop a JAX-RPC Web service from an enterprise bean, develop a Web service with an existing WSDL file using JavaBeans, or develop a Web service with an existing WSDL file using an enterprise bean. In this task, we need develop a new WSDL file.

You can use a bean that already exists and then enable the implementation for Web services. Enabling the bean for Web services includes...

 

Procedure

  1. Set up a development environment for Web services.

    You do not have to set up a development environment if you are using Rational Application Developer.

  2. Access an existing JavaBeans WAR file.

  3. Develop a JavaBeans service endpoint interface.

    The service endpoint interface defines the methods for a particular Web service. The JavaBeans must implement methods having the same signature as the methods on the service endpoint interface.

  4. Develop a WSDL file

    The WSDL file is the description of a J2EE Web service; without it there is no Web service.

  5. Develop Web services deployment descriptor templates for a JavaBeans implementation

    We need to complete this step to create the deployment descriptor templates that are configured to map the service implementation to the JavaBeans implementation.

  6. Complete the JavaBeans implementation.

    When you complete the JavaBeans implementation, you are assembling a Java archive (JAR) file that contains a JavaBeans implementation and supported classes created from the WSDL file.

  7. Configure the webservices.xml deployment descriptor

    Configure the webservices.xml deployment descriptor so that WAS can process the incoming Web services requests.

  8. Configure the ibm-webservices-bnd.xmi deployment descriptor

    Configure the ibm-webservices-bnd.xml deployment descriptor so that WAS can process the incoming Web services requests.

  9. Assemble a WAR file that is enabled for Web services from Java code

    You can assemble the artifacts that are required to enable the Web module for Web services into a WAR file.

  10. Assemble a WAR file that is enabled for Web services into an EAR file

    You can assemble the artifacts that are required to enable the Web module for Web services into an EAR file.

  11. Deploy the EAR file into WAS

    You can now deploy the EAR file that has been configured and enabled for Web services into the appserver.

 

Results

You have a Web service developed from JavaBeans.

 

What to do next

After you deploy the EAR file, test the Web service to make sure that it works with the appserver.



Set up a development environment for Web services
Develop a service endpoint interface for JAX-RPC applications
Develop a WSDL file for JAX-RPC applications
Develop JAX-RPC Web services deployment descriptor templates for a JavaBeans implementation
Complete the JavaBeans implementation
Use HTTP to transport Web services requests
Example: Develop and deploy a JAX-RPC Web service from an existing application

 

Related concepts

Web services

 

Related tasks

Assemble Web services applications
Assemble a WAR file that is enabled for Web services from Java code
Assemble a Web services-enabled WAR into an EAR file
Deploy Web services applications onto appservers
Develop Web services applications from existing WSDL files with JavaBeans

 

Related Reference

Artifacts used to develop Web services Web services specifications and APIs