Develop a Web service using a stateless session enterprise beanSet 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...
- The enterprise bean must be a stateless session bean.
- Web service method parameters must be serializable and cannot be object references.
- Web service method parameters must be one of the supported Java API for XML-based remote procedure call (JAX-RPC) types.
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...
- Access an existing JAR file to be used as a Web service.Verify that the enterprise bean meets the requirements.
- Develop an EJB Service Endpoint Interface.The Service Endpoint Interface defines which enterprise bean methods should be made available as a Web service.
- Develop a Web Services Description Language (WSDL) file.
- Develop Web services deployment descriptor templates from an EJB implementation.
- Assemble a Web services-enabled JAR file.
- Configure the webservices.xml deployment descriptor.
- Configure the ibm-webservices-bnd.xmi deployment descriptor.
- Assemble a Web services-enabled EAR file.
- 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.
- Deploy the EAR file into WAS.
A Web service from a stateless session enterprise bean.
See AlsoDeveloping 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