Testing WSDL documents and Web services using the WSDL Explorer
WSDL documents allow developers to expose their applications as
network-accessible services on the Internet. Through UDDI and WSIL, other
applications can discover WSDL documents and bind with them to execute transactions
or perform other business processes. The Web Services Explorer allows you
to explore, import, and test WSDL documents.
Prerequisites: To use the WSDL Explorer:
The WSDL Explorer allows you to explore, and test WSDL documents.
For more information on exploring WSDL documents using the WSDL Explorer,
Using the WSDL Explorer .
test a Web service using the WSDL Explorer:
To launch the WSDL Explorer, complete the following steps:
In the Web Services Explorer, switch to the WSDL Explorer by
clicking the icon in the upper right-hand corner .
Select WSDL Main in the Navigator pane, enter or browse to an existing
WSDL URL in the right-hand pane, and click Go. For this example the
WSDL being used is a Web Service which converts temperature from Celsius to
Fahrenheit or Fahrenheit to Celsius.
The following nodes
will be added to the WSDL tree:
- The WSDL node:
- The service node (which represents a service element within the WSDL file):
- The binding node:
- The operation node:
In the WSDL Binding Details pane, click the operation (in this
example the CtoF operation) to display:
- A drop-down list with the endpoints available for this operation
- Fields for each of the parameters of this operation (in this example the
temp parameter) and the type of information
the parameter is looking for (in this example temp is
requesting an integer).
The Form view allows
you to enter the parameters for the Web service operation call. Parameters
names are displayed as links whose action is to display a dialog describing
embedded XML Schema Definition Language (XSD) information. More information
about XSD can be found here:
Enter your integer and click Go. The result is returned
in the Status pane.
If you are using SOAP as your binding method, clicking Source or
Form in the upper right-hand corner will toggle the display between the Form
view (shown above) and the Source view, which displays the SOAP message in
the XML format. You can also enter the same information as in the form, only
in XML format (this is suggested for advanced users only). The Explorer does
validate the XML if you modify it, but not the parameter values you enter.
If you are using SOAP as your binding type, you will also have
the option of toggling the Status pane between the Source and Form views.
The Source view shows the SOAP request and response envelopes, including the
parameters you have entered to test the service and the returned value.