Developing Web services applications from existing WSDL files with JavaBeans

You can develop a new Web service with an existing Web Services Description Language (WSDL) file using JavaBeans.

Before you begin

Locate the Web Services Description Language (WSDL) file that defines the Web service that you want to implement. You can develop a WSDL or obtain one from an existing Web service through e-mail, downloading or a Uniform Resource Locator (URL).

About this task

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

Procedure

  1. Set up a development environment for Web services. You do not have to set up a development environment if you are using Rational Application Developer.
  2. Develop JavaBeans 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 JavaBeans implementation.
  3. Complete the JavaBeans implementation. When you complete the JavaBeans implementation, you are assembling a Java archive (JAR) file that contains a JavaBeans implementation and supported classes created from the WSDL file.
  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 Web archive (WAR) file when starting from a WSDL file. You can assemble the artifacts that are required to enable the Web module for Web services into a WAR file.
  7. Assemble a Web services-enabled WAR into an enterprise archive (EAR) file. You can assemble the artifacts that are required to enable the Web module for Web services into an EAR file.
  8. Deploy the enterprise archive (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 created a new Web service by starting with an existing WSDL file using JavaBeans.

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

(Index)

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

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Aug 29, 2010 8:25:23 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-zos&topic=twbs_devwsdl1
File name: twbs_devwsdl1.html