Passing XML Objects to a CFC via a webservice
Hi, I'm having a problem passing an xml object to a CFC via a webservice. My idea was to pass an xml object to a CFC, have the CFC extract some information from it, perform some operations and then build some xml to send back the client. I am using xml as the webservice needs to accept a dyanmic number and type of arguments. The problem I am having is that CF8 seems to treat XML received via a webservice differently to XML passed locally to a CFC.
Here are some examples
<cffunction name="sfrequest" description="I take some xml and do something" access="remote" returntype="any" output="false">
<cfargument name="xmlRequest" type="xml" required="true">
<cfset xmlOutput = xmlRequest>
<cfreturn xmlOutput />
</cffunction>
Will work if called locally or via a webservice
<cffunction name="sfrequest" description="I take some xml and do something" access="remote" returntype="any" output="false">
<cfargument name="xmlRequest" type="xml" required="true">
<cfset xmlRequest.request.xmlText = "A different value">
<cfreturn xmlRequest />
</cffunction>
Will only work locally. If called as a webservice I get a java.lang.NoSuchFieldException : REQUEST error
Trying to work out why this was happening I did a cfc like this to pass back the variables scope.
<cffunction name="sfrequest" description="I take some xml and do something" access="remote" returntype="any" output="false">
<cfargument name="xmlRequest" type="xml" required="true">
<cfsavecontent variable="inputArgs">
<cfdump var="#arguments#">
</cfsavecontent>
<cfreturn inputArgs />
</cffunction>
When called locally I got back a dump of the xml that I passed in. However when I called it as a webservice I got something I believe to be a java class in it's place

Does anyone have any ideas???
