If you invoke the CFC as a web service (using ?wsdl on the URL), you get the result back as a SOAP response (XML). If you invoke a CFC method via a URL without specifying ?wsdl, you get the returned value as WDDX. If you invoke it from Flash, the response is in AMF.
Also, in CF8 you can specify returnFormat on the URL with values for JSON, WDDX, and plain. On 9/5/07, Steve Sequenzia <[EMAIL PROTECTED]> wrote: > > Hey Brian, quick question about this. > > If you use a CFC to create a web service and do not convert it to XML what > data format does the CFC respond to requests in? > > I mean, if I have a backend in CF that uses CFC to access the database and > feed it to the front end (or other users front ends) where is the data > format specified? > > > I might be asking this question wrong because my knowledge of web services > is pretty limited but if you could give me an idea of how this works that > would be great. > > Thanks! > > >A CFC will respond to web service requests and AMF without you having to > do > >anything. Further, if custom XML is being generated, it has to come from > >somewhere. So the XML generation could stay in place but the underlying > CFC > >supplying the data could easily be exposed for AMF calls, allowing you to > do > >AMF, raw XML, and web services. The bottom line is that however else you > >want to expose the data, there is no reason not to use AMF to feed a Flex > >app. > > > > > > > >> > >> > >> portability....you could use any client technology to consume your > >> service if it uses xml versus amf. > >> > >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287856 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

