User Guide
cfproperty 345
For web services that you create in ColdFusion, the cfproperty tag defines complex variables
used by the web service.
Example
The following code defines a component in the file address.cfc that contains properties that
represent a street address:
<cfcomponent>
<cfproperty name="Number" type="numeric">
<cfproperty name="Street" type="string">
<cfproperty name="City" type="string">
<cfproperty name="State" type="string">
<cfproperty name="Country" type="string">
</cfcomponent>
This component represents a complex data type that can be used in a component that is exported
as a web service, such as the following:
<cfcomponent>
<cffunction name="echoAddress" returnType="address" access="remote">
<cfargument name="input" type="address">
<cfreturn arguments.input>
</cffunction>
</cfcomponent>