Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1111

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using Web Elements and External Objects
ColdFusion data type
binary
date
guid
uuid
void (operation returns nothing)
struct
query
any
component definition
In most cases, consumers of ColdFusion web services can easily pass data to and return results from component
functions by mapping their data types to the WSDL data types shown in the preceding table.
Note: Document-literal web services use XML schema data types, not SOAP-ENC data types. For more information, see
"Publishing document-literal style web
For ColdFusion structures and queries, Some clients must process their data to map it to the correct type. For more
information, see
"Publishing web services that use complex data
You can also define a data type in one ColdFusion component based on another component definition. For more
information on using components to specify a data type, see
web
services" on page 1109.
Producing WSDL files
ColdFusion automatically creates a WSDL file for any component referenced as a web service. For example, if you have
a component named echo.cfc in your web root directory, you can view its corresponding WSDL file by requesting the
component as follows:
http://localhost/echo.cfc?wsdl
The
tag includes optional attributes that you can use to control the WSDL that ColdFusion generates.
cfcomponent
You can use these attributes to create meaningful WSDL attribute names, as the following example shows:
<cfcomponent style="document"
namespace = "http://www.mycompany.com/"
serviceportname = "RestrictedEmpInfo"
porttypename = "RestrictedEmpInfo"
bindingname = "myns:RestrictedEmpInfo"
displayname = "RestrictedEmpInfo"
hint = "RestrictedEmpInfo">
For complete control of the WSDL, advanced users can specify the
predefined WSDL file.
The following example defines a ColdFusion component that can be invoked as a web service:
WSDL data type published
xsd:base64Binary
xsd:dateTime
SOAP-ENC:string
SOAP-ENC:string
Map
QueryBean
complex type
complex type
services" on page 1110.
types" on page 1119.
"Using ColdFusion components to define data types for
Last updated 1/20/2012
attribute to use a
cfcomponentwsdlFile
1106

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents