> > > What's the approach here? What's the next step to making 
> > > something that people using .net or PHP can return and use?
> 
> > Create an array of transfer objects (objects with just cfproperty 
> > tags) or convert it to XML.
>
> Any pages anyone can recommend dealing with this? Tutorials? 
> Best Practices, etc? Beuller? Beuller? 

If I recall correctly, it's actually discussed directly within the CF
documentation. But basically, it boils down to creating CFC instances to
replace structures. For example, if you wanted to have information about a
person in a structure, you would instead define and use a CFC to represent
that information. Your CFC would have nothing but CFPROPERTY tags, which
would essentially be used to provide named properties that would correspond
to your structure keys; something like this:

<cfcomponent>
        <cfproperty name="FirstName" type="string" ...>
        <cfproperty name="LastName" type="string" ...>
</cfcomponent>

Then, within your web service, instead of returning a structure (or an array
of structures), you'd return a Person object (or an array of Person
objects).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273540
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to