Develop a Web service using a stateless session enterprise bean

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. Create the artifacts that enable the enterprise bean to be a Web service and assemble the artifacts into the enterprise application as follows...

  1. Access an existing JAR file to be used as a Web service.Verify that the enterprise bean meets the requirements.

  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 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 tool before it is deployed.

  10. Deploy the EAR file into WAS.

A Web service from a stateless session enterprise bean.

 

See Also

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
Artifacts used to develop Web services based on Web Services for J2EE
Web services: Resources for learning