WebSphere Application Server Network Deployment, Version 6.1
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results

Developing Web services applications from existing WSDL files with enterprise beans

You can develop a new Web service from an existing Web Services Description Language (WSDL) file using a stateless session enterprise bean.

Before you begin

Locate the Web Services Description Language (WSDL) file that defines the Web service to implement. The SOAP address URI is not required because it is updated when your new implementation is deployed.

About this task

This task is one of four ways that you can develop a Web service. You can also develop a Web service from a JavaBeans implementation, develop a Web service from a stateless session enterprise bean, or develop a Web service with an existing WSDL file using a Java bean.

Create the enterprise bean and artifacts that enable the enterprise bean as Web services and assemble those artifacts into the enterprise application:

Procedure

  1. Set up a Web services development and unmanaged client execution environment. You do not have to set up a development environment if you are using Rational Application Developer.
  2. Develop implementation templates and bindings from a WSDL file. You need to complete this step to create the deployment descriptor templates that are configured to map the service implementation to the enterprise bean implementation.
  3. Complete the enterprise bean implementation.
  4. Configure the webservices.xml deployment descriptor. Configure the ibm-webservices-bnd.xml deployment descriptor so that WebSphere Application Server can process the incoming Web services requests.
  5. Configure the ibm-webservices-bnd.xmi deployment descriptor. Configure the ibm-webservices-bnd.xml deployment descriptor so that WebSphere Application Server can process the incoming Web services requests.
  6. Assemble a JAR file that is enabled for Web services from an enterprise bean. You can assemble the artifacts that are required to enable the enterprise beans module for Web services into a JAR file.
  7. Assemble a Web services-enabled enterprise bean JAR file into an enterprise archive (EAR) file. You can assemble the artifacts that are required to enable the Web services-enabled JAR file into an EAR file.
  8. Enable the EAR file. When the EAR file contains enterprise bean modules, the EAR file must have the Web services endpoint Web archive (WAR) file added with the endptEnabler command or with an assembly tool before deployment.
  9. Deploy the EAR file into WebSphere Application Server. You can now deploy the EAR file that has been configured and enabled for Web services.

Results

You have an enterprise beans implementation of a Web service that is defined in the WSDL file.

What to do next

After you deploy the EAR file, test the Web service to make sure that it works with the application server.



In this information ...


IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Feb 25, 2009 9:32:38 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/twbs_devwsdl2.html