This task explains how to develop a Web service from an enterprise bean.
Before you begin
Set up a Web services development and unmanaged client run-time environment.This task is one of four ways that you can develop a Web service. You can also develop a Web service from a Java bean, develop a Web service with an existing Web Services Description Language (WSDL) file using a Java bean, or develop a Web service with an existing WSDL file using an enterprise bean. In this task, you need develop a new WSDL file.
Enabling the enterprise bean for Web services includes developing the service endpoint interface, locating or developing a WSDL file that is the engine of the Web service, generating and configuring the deployment descriptors, completing the EJB implementation, assembling all the artifacts required for the Web service, enabling the modules and deploying the application into the WebSphere Application Server 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:Steps for this task
This topic presents the steps necessary to deploy the EAR file that has been configured, assembled and enabled for Web services.
Result
You have a Web service developed from a stateless session enterprise bean.What to do next
Publish the WSDL file.Related tasks
Developing a WSDL file
Assembling a JAR file that is enabled for Web services from an enterprise
bean
Assembling an enterprise bean JAR file into an EAR file
Enabling an EAR file for Web services
Deploying Web services
Developing new Web services from an existing WSDL file using an EJB
implementation
Related reference
Artifacts used to develop Web services
Web services: Resources for learning