Is there any reason you need the complex object returned?  If you're only
trying to return the XML string, why don't you just change your return type
to "string" and CFRETURN o.final?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ian Sheridan
Sent: Wednesday, August 25, 2004 4:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Web Services Problem

Yes, I did that but strangely what worked was to go to struct output
also. This webservice is only to be consumed by other CF servers in
our network so that is not really that big an issue (just in case
someone would bring that up).

I would still know why that was not working so if anyone can shed some
light on that, it would be great.

Here is what I ended up with.

        <cffunction name="getUsers" access="remote" output="false"
returntype="struct" hint="This Function outputs an XML file in a
structure (final).">
                <cfargument name="showinactive" type="boolean"
required="true"
hint="show the inactive accounts">
                <cfset var t = structnew()><!--- temporary variables --->
                <cfset var o = structnew()><!--- output variables --->
                <cfscript>
                        // get results
                        t.output =
createobject("component","uau.com.users").getUsers(arguments.showinactive);
                        t.result =
createobject("component","uau.com.utility").queryToXML(t.output.result,"user
s","user");
                        o.final = tostring(t.result);
                </cfscript>
                <cfreturn o>
        </cffunction>
----------------------------------------------------------
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]

Reply via email to