Modifying a SOAP Request

When you select a WSDL from the Result field in the UDDI Browser and click OK, the operations exposed by the Web service are displayed in the Stylus Studio Web Service Call Composer.

Figure 302. Modifying a SOAP request

When you select an operation from the Operations pane, Stylus Studio displays

  • Parameters associated with that operation, including their datatype and a field in which you can enter a value for testing purposes.
  • The XML that describes the SOAP request associated with that operation. You can edit the SOAP request, but for initial testing you should restrict changes to providing parameter values, and you can use the parameter's Value field for this purpose.

Understanding Parameters

Stylus Studio displays the datatype for SOAP request parameters. It is not possible to determine all of the details for parameters, however. A zipCode parameter might take the following:


      12309, 02134, 90210
       

    

Or it might take only a single value. Sometimes this type of information is provided in the WSDL itself. In some cases, however, you might have to contact the Web service provider to obtain this information.

Displaying a WSDL Document

You can easily display a WSDL document within Stylus Studio once you have specified the WSDL URL. You might want to look at a WSDL document to learn more about the structure of the SOAP request, or to see if the Web service provider commented the XML to include information for developers using their Web service.

How to display a WSDL document
To display a WSDL document, click the Open WSDL Document button ( ) near the top of the Web services editor.

Stylus Studio displays the WSDL document in its own XML editor, as shown in Figure 303:

Figure 303. WSDL document editor

How to Modify a SOAP Request

To modify a SOAP request:
1. Select the Web service operation for which you want to compose a SOAP request from the Operations pane.

The SOAP request for the Web service operation appears in the XML editing area.

2. In the Name field, select a parameter and enter a value for it in the Value field.
3. Repeat step 2 for any remaining parameters.
What to do next

Once you have specified values for the SOAP request's parameters, you can test the Web service. See Testing a Web Service.

 
Free Stylus Studio XML Training: