Exercise 1.2: Import and validate the WSDL file

Before you begin, you must complete Exercise 1.1: Set up the workspace and create the required projects.

Importing the Temperature Conversion WSDL document

The Temperature Conversion WSDL document has been provided for you. The WSDL file that you will use in this tutorial converts temperature from Fahrenheit to Celsius and Celsius to Fahrenheit.

You can create a new WSDL document in WebSphere Studio or import an existing one. The Temperature Conversion WSDL document used in this tutorial has been provided for you. Complete the following steps to import the Temperature Conversion WSDL document into the workbench:

  1. Click Window > Open Perspective > Other > Resource to switch to the Resource perspective.
  2. In the Navigator view, select the WebContent folder under your Web project.
  3. Right-click the WebContent folder and click New > Folder to create a folder called wsdl. Click Finish.
  4. Click File > Import to open the Import wizard.
  5. Click File system to import the resources from the local file system. Click Next.
  6. Click Browse to locate and select the following folder which is located in the Rational Developer product's install directory:
    com.ibm.etools.webservice.tdejb.tutorial.doc\resources.
  7. Click OK.
  8. Select the ConvertTemperature.wsdl check box.
  9. Click Finish to import the WSDL document and close the wizard.

Validating the WSDL document

WebSphere Studio provides a tool called the WSDL Validator for validating WSDL semantics and WS-I compliancy.

To validate the Temperature Converter WSDL document:

  1. Select the ConvertTemperature.wsdl document in the Project Navigator.
  2. Right-click, and click Validate WSDL file. A window is displayed stating that the WSDL document is valid. Any errors will be displayed in the Tasks view.

If no errors occur during validation, you can proceed to create the Web service.

Now you are ready to begin Exercise 1.3: Create the Web service.

Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.