User Guide

Table Of Contents
Working with WSDL files 889
To open the Components tab in the Dreamweaver MX 2004 and add a web service:
1.
Select Window > Components, or use Control+F7, to open the Components panel.
2.
In the Components panel, select Web Services from the drop-down list in the upper-left of the
panel.
3.
Click the Plus (+) button.
The Add Using WSDL dialog box appears.
4.
Specify the URL of the WSDL file.
After the web service is defined to Dreamweaver MX 2004, you can drag it onto a page to call it
using the
cfinvoke tag.
For more information on using Dreamweaver MX 2004, see its online Help system.
Note: The Web Services option is not available if you are running Dreamweaver MX 2004 on the
Macintosh. However, you can still use web services by writing code manually.
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 2004, 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 TemperatureService web service:
<?xml version="1.0"?>
<definitions name="TemperatureService" targetNamespace="http://
www.xmethods.net/sd/TemperatureService.wsdl" xmlns:tns="http://
www.xmethods.net/sd/TemperatureService.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="getTempRequest">
<part name="zipcode" type="xsd:string"/>
</message>
<message name="getTempResponse">
<part name="return" type="xsd:float"/>
</message>
<portType name="TemperaturePortType">
<operation name="getTemp">
<input message="tns:getTempRequest"/>
<output message="tns:getTempResponse"/>
</operation>
</portType>
<binding name="TemperatureBinding" type="tns:TemperaturePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/
http"/>
<operation name="getTemp">
<soap:operation soapAction=""/>
<input>
<soap:body use="encoded" namespace="urn:xmethods-Temperature"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>