Yes, Simeon talked about this in the AOP BoF, if you return xml as a
string you run into the issue with it being WDDX'd, but if you return
it as an XML object, it's fine...
Chris Scott
[EMAIL PROTECTED]
http://cdscott.blogspot.com/
http://www.coldspringframework.org/

On Jul 2, 2006, at 10:31 PM, Arbeitman, Scott wrote:
I've gotten around this restriction in 2 ways:
1) New behaviour (I think 7.0.1 and onward), XML return types are not
WDDX encoded.
2) In the CFC remote method, do a <cfoutput>#ToString(xml)#</cfoutput>
and return nothing. You also need to put a <cfcontent type="text/
xml" />
in the pseudo-constructor.
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Ross
Sent: Monday, 3 July 2006 12:18 PM
To: [email protected]
Subject: [coldspring-dev] RESTful Proxies?
pretty sure it has to be a .cfm - because a CFC will always
WDDX-encode whatever it returns when called directly via url.
I'm sure Sim will chime in - he hit this recently. Otherwise, yes, I'm
interesting in REST-based remote proxying.
-Dave
On 7/2/06, Sean Corfield <[EMAIL PROTECTED]> wrote:
On 7/2/06, Arbeitman, Scott <[EMAIL PROTECTED]> wrote:
I haven't used any of the remote proxy stuff in ColdSpring, as I
don't
do much Flash Remoting. From what I understand, I can expose select
methods of a CFC to a Flash client without modifying the code. Nice.
What I would really like is a RESTful approach to services, where I
can
proxy a service and have it give me XML packets suitable for AJAX
and/or
XSLT via a GET request.
I actually have a need to create a REST proxy for CFCs. It's
something
I plan to build over the next week or two - but has nothing to do
with
ColdSpring. My plan is to create a single CFC that can act as a
remote
REST facade for arbitrary CFCs, by encoding the CFC/method to be
called into the root element of the inbound XML packet. I'm still
bouncing ideas around about it tho' so I'm very open to any input
(off-list).
--
Sean A Corfield -- http://corfield.org/
Got frameworks?
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
Please note that Goldman Sachs JBWere makes important disclosures
of its interests at http://www.gsjbwere.com/Disclosures
GOLDMAN SACHS JBWERE PTY LTD DISCLAIMER
Goldman Sachs JBWere Pty Ltd and its related entities distributing
this document and each of their respective directors, officers and
agents ("Goldman Sachs JBWere Group") believe that the information
contained in this document is correct and that any estimates,
opinions, conclusions or recommendations contained in this document
are reasonably held or made as at the time of compilation. However,
no warranty is made as to the accuracy or reliability of any
estimates, opinions, conclusions, recommendations (which may change
without notice) or other information contained in this document
and, to the maximum extent permitted by law, Goldman Sachs JBWere
Group disclaims all liability and responsibility for any direct or
indirect loss or damage which may be suffered by any recipient
through relying on anything contained in or omitted from this
document. This document is for the intended recipient only and is
provided on the condition that you keep it confidential and do not
copy or circulate it in whole or in part. No part of this document
may be reproduced without the permission of Goldman Sachs JBWere
Group. Copyright in this document is owned by Goldman Sachs JBWere
Pty Ltd. The Goldman Sachs JBWere Group does not represent or
warrant that any attached files are free from computer viruses or
other defects. Any files provided may only be used on the basis
that the user assumes all responsibility for any loss, damage or
consequence resulting directly or indirectly from their use. The
liability of the Goldman Sachs JBWere Group is limited in any event
to either the resupply of the attached files or the cost of having
the attached files resupplied. All reasonable efforts are made to
prevent dissemination of viruses through the electronic portal.
Copyright in this document is owned by Goldman Sachs JBWere Pty
Ltd. 2005 Goldman Sachs JBWere Pty Ltd, ABN 21 006 797 897, AFSL
243346.
All rights reserved.
If you do not wish to receive future communications of this nature,
you can unsubscribe by going to:http://www.gsjbwere.com/Unsubs/
[EMAIL PROTECTED]
If you require any further information regarding our SPAM policy,
please email [EMAIL PROTECTED]
Goldman Sachs JBWere Group 1300 366 790 or (61 3) 9679 1534