[Version 5.0.2 and later]Example: Developing a Web service from an EJB or JavaBean

This example takes you through the steps to develop a Web service from an enterprise JavaBean (EJB) implementation. The development process is based on the Web Services for Java 2 platform, Enterprise Edition (J2EE) specification.

  1. Select the EJB or Java bean implementation that you want to enable as a Web service.

    The implementation must meet the following Web Services for J2EE specification requirements:

  2. Develop a Service Endpoint Interface.

    Developing a Web service requires a Service Endpoint Interface.

    If you are using an EJB implementation, develop a Service Endpoint Interface from an EJB remote interface.

    If you are using a Java bean implementation, develop a Service Endpoint Interface for a Java bean implementation.

  3. Develop a WSDL file.
  4. Develop deployment descriptor templates.

    If you are using an EJB implementation, develop Web services deployment descriptor templates from an EJB implementation.

    If you are using a Java bean implementation, develop Web services deployment descriptor templates for a Java bean implementation.

  5. Configure the deployment descriptors.

    By setting the ejb-link or servlet-link values of the service-impl-bean elements you can link to the EJB or Java bean that implements the service.

    Configure the webservices.xml deployment descriptor.

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

  6. Assemble a JAR file or Assemble a WAR file.
  7. Assemble an EAR file from a Jar file or Assemble an EAR file from a WAR file.
  8. Enable the Web service-enabled EAR file.

    This step only applies if you are using an EJB implementation.

  9. Deploy the Web service application.
  10. Publish the WSDL file.

Review the Javadoc for a complete list of API's. You can also review several articles about the development of Web services at Web services: Resources for learning.

Web services development process based on Web Services for J2EE


Related tasks
Developing Web services based on Web Services for J2EE



Searchable topic ID:   rwbs_devxmp
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/ae/rwbs_devxmp.html

Library | Support | Terms of Use | Feedback