About this task
If you are using a Rational® Developer
for Power Systems Software server
for your Web service and you have a valid Web service test client file, you
can test the Web service locally using the Rational test environment.
To
use the Rational test
environment with a valid Web service test client, do the following:
- Display the Servers view by selection .
- Add the project containing the Web service to the server by right-clicking
the server and selecting Add and remove projects.
- Select the project in the left pane and click Add to
add it to the server.
- Click Finish.
- Right-click the server and select Start.
- Right-click the Web service test client file you want to run and select .
When you create a Web service, you can find the files generated
for the Web service in the project folder and the Web Services folder.
To
invoke the Web service from a WSDL file, do the following:
- Right-click the WSDL file for your Web service in the Web project and
select . The Web Services Explorer
is displayed in the browser window.
- Click the operation for your Web service in the Operations table.
The Invoke a WSDL Operation page is displayed.
- Specify the input data for your Web service and click Go.
The result of the operation is displayed in the Status window.
Note: When testing
a Web Service using the Web Services Explorer make sure to enter values for
all parameters, otherwise there may be exceptions when invoking the Web Service
operation. The exceptions are displayed in the WAS console.