[Version 5.0.2 and later]Developing a Web service from an enterprise bean

Before you begin

Set up a Web services development and unmanaged client execution environment.

To use an enterprise bean as the basis for a Web service implementation, follow these requirements:

These requirements are documented in the JAX-RPC specification available through Web services: Resources for learning.

Why and when to perform this task

Create the artifacts that enable the enterprise bean to be a Web service and assemble the artifacts into the enterprise application as follows:

Steps for this task

  1. Access an existing Java archive (JAR) file to be used as a Web service.
  2. Develop an EJB Service Endpoint Interface.
    The Service Endpoint Interface defines which enterprise bean methods should be made available as a Web service.
  3. Develop a Web Services Description Language (WSDL) file.
  4. Develop Web services deployment descriptor templates from an EJB implementation.
  5. Assemble a Web services-enabled JAR file.
  6. Configure the webservices.xml deployment descriptor.
  7. Configure the ibm-webservices-bnd.xmi deployment descriptor.
  8. Assemble a Web services-enabled enterprise archive (EAR) file.
  9. Enable the EAR file.
    When the EAR file contains EJB modules, it must have the Web services endpoint Web archive (WAR) file added with the endptEnabler command-line tool before it is deployed.
  10. Deploy the EAR file into WebSphere Application Server.

Results

A Web service from a stateless session enterprise bean.

Related tasks
Developing a WSDL file
Assembling a Web services-enabled EJB JAR file when starting from Java code
Assembling a Web services-enabled EJB JAR into an EAR file
Enabling a Web services-enabled EAR file
Deploying Web services based on Web Services for J2EE
Developing a new Web service from an existing WSDL file using a stateless session enterprise bean
Related reference
Artifacts used to develop Web services based on Web Services for J2EE
Web services: Resources for learning



Searchable topic ID:   twbs_devnew2
Last updated: Jun 21, 2007 9:56:50 PM CDT    WebSphere Application Server for z/OS, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/twbs_devnew2.html

Library | Support | Terms of Use | Feedback