Bingo! That worked
<cfset tmp = #queryToXML(getDocs)#>
<cfset retVal = #toString(xml)#>
Thanks,
James
-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 7:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Problems returning XML via WebService
On May 14, 2004, at 4:50 PM, James Johnson wrote:
> returntype="any" didn't work, so I changed the <cfreturn #xml#> to:
>
> <cfreturn #xml.toString()#>
I was wrong about that - it should be this:
<cfreturn toString(xml) />
The toString() function converts an XML object to a string (which will then
match your returntype= setting).
I tested this and it worked (of course you have to XMLParse() the result to
get your XML object back again...
Sean A Corfield -- http://www.corfield.org/blog/
Macromedia Community Week - May 17-21
http://www.macromedia.com/community/
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool,
Corporation (www.mindtool.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]