beautypg.com

Add a web service using a proxy class, Adding custom server behaviors, About custom server behaviors – Adobe Dreamweaver CS3 User Manual

Page 596

background image

DREAMWEAVER CS3

User Guide

589

Web Service

webservice="http://www.mysite.com:8500/helloworld/HelloWorld.cfc?wsdl"

method="sayHello"

returnvariable="aString">

The web service says: #aString#

4

When you deploy web pages to a production server, Dreamweaver automatically copies the pages, the proxy, and

any necessary libraries to the web server.

Note: If you develop the application with a proxy that is installed on a separate computer from the one where you
developed the pages, or if you use a site management tool that does not copy all of the related files to the server, you must
ensure that you deploy both the proxy and any dependent library files. Otherwise, your pages cannot communicate with
the web service application.

Add a web service using a proxy class

Select a local .NET DLL or JSP Reader to introspect web service proxies when using the .NET or JSP development
framework.

1

Select Window > Components to open the Components panel.

2

In the Components panel, select Web Services from the pop-up menu in the upper-left corner of the panel, then

click the Plus (+) button and select Add Using Proxy Classes.

3

Enter the location of the proxy class reader in the box, or browse for the file.

4

Select a proxy reader from the pop-up menu, and click OK.

There are two default proxy readers:

The .NET DLL Reader for ASP.NET document types

The Java Class Reader for JSP document types

Adding custom server behaviors

About custom server behaviors

Dreamweaver comes with a set of built-in server behaviors that lets you easily add dynamic capabilities to a site. You
can extend the Dreamweaver functionality by creating server behaviors to suit your development needs, or by
obtaining server behaviors from the Dreamweaver Exchange website.

Before creating your own server behaviors, you should check the Dreamweaver Exchange website to see if another
party has already created a server behavior that supplies the functionality you’d like to add to your website. Often, a
third-party developer has created and tested a server behavior that will address your needs.

September 4, 2007