Testing a Web Service

You can test a Web service from within Stylus Studio. Testing allows you to quickly and easily

  • Verify whether or not the Web service is available
  • Understand whether or not the Web service provides the type of information you expect and require
  • Learn about the SOAP response returned by the Web service
  • Learn how parameters you might choose to specify in a Web service call scenario affect the Web service operation

What Happens When You Test a Web Service

When you test a Web service, Stylus Studio submits the SOAP request to the WSDL URL specified in the Web service call. The result, when it is returned, is displayed in the Preview window of the Web Service Call Composer.

By default, Stylus Studio uses the HTTP transport protocol to submit the SOAP request to the WSDL server. Stylus Studio uses the proxy server specified on the local machine if one has been configured.

Other Options for Testing a Web Service

In addition to testing a Web service as described in this section, you can also create a Web service call scenario. Web service call scenarios allow you to

  • Use transport protocols besides HTTP
  • Specify overrides to the WSDL (changing the SOAP action, for example)
  • Change default settings (such as the time out value for executing SOAP requests)

See Creating a Web Service Call Scenario to learn more about Web service call scenarios.

How to Test a Web Service

To test a Web service, click the Send Request button ( ) to submit the SOAP request.

Stylus Studio displays the SOAP response in the Preview window as shown in Figure 304:

Figure 304. Testing a Web service

 
Free Stylus Studio XML Training: