Adobe 38040334 - Dreamweaver CS3 User Manual page 595

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Complete the UDDI Sites dialog box, and click Done.
3
To add a new site, or modify an existing one, click the New or Edit button. Enter the name and URL of a UDDI
website, and click OK.
To remove an existing site, select it from the list, and click the Remove button.
Add a web service to a page
After selecting a web service, generating its proxy, and adding it to the Components panel, you insert it in a page.
The following example shows the Components panel with the web service proxy
proxy provides one method,
Helloworld
The following example instantiates the
In the Document window, in Code view, drag the
1
Dreamweaver adds the method and dummy parameters to the page.
2
Edit the inserted code with appropriate service instance names, data types, and parameter values, as required by
the web service. The web service provides descriptions of the data types and parameter values.
In the following ColdFusion example, the web service is enclosed by the
service in ColdFusion, use
<cfinvoke>
<html>
<head>
<title>Web Service</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<cfinvoke
webservice="http://www.mysite.com:8500:8500/helloworld/HelloWorld.cfc?wsdl"
method="sayHello"
returnvariable="aString">
</cfinvoke>
</body>
</html>
3
To bind a return value to a visual element, switch to Design view and place a visual element on the page that can
accept data binding. Then switch back to Code view and enter the appropriate code to bind the returned value to the
visual element. When creating web services, refer to the technology provider's documentation for the proper syntax
with which to both instantiate the service and display the returned values to the page.
In this example, the value returned for the variable
displays the sentence "
The web service says: Hello world!
, which prints "Hello World. "
sayHello
web service using ColdFusion.
HelloWorld
method into the page's HTML.
sayHello
to instantiate the web service and invoke its methods.
is output using the ColdFusion
aString
" to the page.
September 4, 2007
added. The
Helloworld
tags. When developing a web
<cfinvoke>
<cfoutput>
DREAMWEAVER CS3
588
User Guide
tag. This

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents