User Guide

Table Of Contents
888 Chapter 36: Using Web Services
Describing web services with WSDL
A WSDL document is an XML file that describes a web services purpose, where it is located, and
how to access it. The WSDL document describes the operations that you can invoke and their
associated data types.
ColdFusion MX can generate a WSDL document from a web service, and you can publish the
WSDL document at a URL to provide information to potential clients. For more information,
see “Working with WSDL files” on page 888.
Finding web services with UDDI
As a consumer of web services, you want to know what web services are available. As a publisher
of web services, you want others to be able to find information about your web services. Universal
Description, Discovery and Integration (UDDI) provides a way for web service clients to
dynamically locate web services that provide specific capabilities. You use a UDDI query to find
service providers. A UDDI response contains information, such as business contact information,
business category, and technical details, about how to invoke a web service.
Although ColdFusion MX does not directly support UDDI, you can manually register or find a
web service using a public UDDI registry, such as the IBM UDDI Business Registry at https://
www-3.ibm.com/services/uddi/protect/registry.html.
You can find additional information about UDDI at www.uddi.org/about.htm.
Working with WSDL files
WSDL files define the interface to a web service. To consume a web service, you access the
service’s WSDL file to determine information about it. If you publish your application logic as a
web service, you must create a WSDL file for it.
WSDL is a draft standard supported by the World Wide Web Consortium. You can access the
specification at www.w3.org/TR/wsdl.
Creating a WSDL file
To publish a web service, you construct the service’s functionality and then create the WSDL file
defining the service. In ColdFusion MX, you use components to create web services. ColdFusion
automatically generates the WSDL file for a component that you use to produce a web service.
For more information on creating web services, see “Publishing web services” on page 898.
For more information on components, see Chapter 10, “Building and Using ColdFusion
Components,” on page 201.
Accessing web services using Macromedia Dreamweaver MX 2004
The Dreamweaver MX 2004 Components tab lets you view web services, including operation
names, parameter names, and parameter data types.