Viewing a WSDL file using Dreamweaver MX
Dreamweaver MX contains a utility to view web services, including operation names, parameter
names, and parameter data types. The following figure shows a WSDL file for the BabelFish web
service:
This figure shows that the web service method babelFish returns a string, and that it takes string
parameters named sourcedata and translationmode as input.
To open the Components tab in the Dreamweaver MX and add a web service:
Select Window > Components, or use Ctrl-F7, to open the Components panel.
1
In the Components panel, select Web Services from the drop-down list in the upper-left of the
2
panel.
Click the Plus (+) button.
3
The Add Using WSDL dialog box appears.
Specify the URL of the WSDL file.
4
For more information on using Dreamweaver MX, see its online Help system.
Reading a WSDL file
A WSDL file takes practice to read. You can view the WSDL file in a browser, or you can use a
tool such as Dreamweaver MX, which contains a built-in utility for displaying WSDL files in an
easy-to-read format.
The following example shows a WSDL file for the BabelFish web service:
<?xml version="1.0" ?>
<definitions name="BabelFishService"
xmlns:tns="http://www.xmethods.net/sd/BabelFishService.wsdl"
targetNamespace="http://www.xmethods.net/sd/BabelFishService.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name="BabelFishRequest">
<part name="translationmode" type="xsd:string" />
<part name="sourcedata" type="xsd:string" />
</message>
<message name="BabelFishResponse">
<part name="return" type="xsd:string" />
</message>
Working with WSDL files
711
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers