Try this instead - looks like you got a temp assignment backwards:

<cffunction name="getUsers" access="remote" output="false"
returntype="string">
        <cfargument name="showinactive" type="boolean" required="false"
default="false"
                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.final>
</cffunction>

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

I am having trouble with sending an xml doc to the user of my web
service. That user being me I am getting this error message:

Could not perform web service invocation "getUsers" because
java.lang.ClassCastException: java.lang.String

I transform a query to xml and the xml to a string. I have done this
before with success but am now having trouble. The code below is the
function in the CFC. As you can see I am making this a facade to my
other CFCs. I am pretty sure that this should work but it isn't.

t.output.result = query, queryToXML outputs a valid xml object

I had to attach the CODE to a txt file.


-- 

----------------------
Ian Sheridan
http://www.savagevines.com
----------------------


----------------------------------------------------------
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