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
----------------------
<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);
                o.result = 
createobject("component","uau.com.utility").queryToXML(t.output.result,"users","user");
                o.final = tostring(o.result);
        </cfscript>
        <cfreturn o.final>
</cffunction>

Reply via email to