Create a web service

You use the J2C wizard to generate the web service for your project. This option generates a Web Services Description Language (WSDL) file and additional helper classes for the generated web service.

About this task

WSDL provides a simple way to describe the basic format of system requests regardless of the underlying runtime implementation. A WSDL document describes where the service is deployed and what operation the service provides.

After you create an MFS J2C Java bean that is based on your MFS source file, create a web service that requests data from the MFS application.

Procedure

  1. From the IBM® Rational® Application Developer for WebSphere® Software menu bar, select File > New > Other. The Select a wizard page opens.
    The Select a wizard page
  2. Expand the J2C folder and select the Web Page, Web Service, or EJB from J2C Java Bean wizard and click Next. The J2C Java bean selection page opens.
    J2C Java bean selection page.
  3. Click Browse and select your project. The Find J2C Bean page opens.
  4. In the Select entries field, as you start to enter the name of the J2C Java™ bean you created, the Matching items pane finds the J2C Java bean with the same name.
  5. Click OK and then click Next. The Deployment Information page opens.
  6. Choose Web Service and click Next. If you have not created a web project, click New to create a new web project.
  7. Click Finish on the Web Service Creation page.

Feedback