I’m building a WebService in ColdFusion 8 using CFCs with remote methods. I need to specify complex data types in the WSDL, so I’m creating CFCs for each of these types. For instance, let’s say I have a “Person” type. It includes an “age” property. This property needs to always be an integer. However, ColdFusion does not have “integer” as a valid type – only Numeric, which translates to “xsd:double” in the WSDL. How can specify that a property – or an argument, for that matter – has a type of “integer”?
FYI, Henry’s answer is very helpful, but I’m trying to return an Object from the function – not just an integer. I need one of the properties to be returned as an integer.
http://www.threesources.com/archives/009007.html