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:
- In the Project Explorer view, select Dynamic Web Projects > WebProject > WebContent.
- Right-click the WebContent folder and click New > Folder to create
a folder called wsdl. Click Finish.
- Click File > Import to open the Import wizard.
- Click File system to import the resources
from the local file system. Click Next.
- 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.
- Click OK.
- Select the ConvertTemperature.wsdl check
box.
- 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:
- Select the ConvertTemperature.wsdl document in the Project Navigator.
- 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.