< Previous | Next >

Lesson 1.2: Import and validate the WSDL file

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.

Before you begin, you must complete Lesson 1.1: Set up the workspace and create the required projects.
You can create a new WSDL document or import an existing one. The Temperature Conversion WSDL document used in this tutorial has been provided for you in a simple project. Complete the following steps to import the Temperature Conversion WSDL document into the workbench:
  1. In the Project Explorer view, expand TempEJB, right-click and click New > Folder to create a folder called wsdl. Click Finish.
  2. Import the simple project containing the WSDL file
  3. Expand the imported simple project called TempConversionWSDL and expand the WebContent folder. The ConvertTemperature.wsdl file will be located here.
  4. Right-click the ConvertTemperature.wsdl file and select Move...
  5. Select the wsdl folder you created in the TempEJB project as your destination and click OK.

Validating the WSDL document

The WSDL Validator can validate WSDL semantics and WS-I compliance.

You can validate the Temperature Converter WSDL document by following the proceeding steps:
  1. Select the ConvertTemperature.wsdl document in the Project Navigator.
  2. Right-click, and click Validate. Any errors will be displayed in the Tasks view.
If no errors occur during validation, you can proceed to create the Web service.

Lesson checkpoint

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

Feedback

< Previous | Next >