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

- - - - - START CODE - - - - - -

<cffunction name="getUsers" access="remote" output="false" returntype="string"
hint="This Function outputs a structure of thee variables; result
(the resulting query), pass (boolean value telling you if the query
was succesfully run), message (the error message from the server if
query failed.)">
<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>

- - - - - END CODE - - - - - -

--

----------------------
Ian Sheridan
http://www.savagevines.com
----------------------
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to