macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

Re: passing xml to a web service

Subject: Re: passing xml to a web service
From: "jim1234"
Date: Tue, 4 Nov 2008 14:11:46 +0000 UTC
Newsgroups: macromedia.coldfusion.advanced_techniques

Ok, Thank You Adam for wasting your time to help me.  Yes that worked.  I 
didn't post any code  because all I had was like four lines, I was trying to 
publish a ColdFusion webservice, another person has the consuming part.  So 
this is all it was:

 <cfcomponent>
 <cffunction name="myFunction" access="remote">
    <cfargument name="myArg" type="XML" required="true">

     <cfdump var="#arguments.myArg#" output="c:\myoutput.txt">
 </cffunction
 </cfcomponent>

 The problem was that the dump was the definition of the java object, not the 
XML.  I didn't know how to access the XML part, or if it existed, which the 
xmlsearch does.  Also, all the namespace prefixes are changed when the XML 
comes in, so if you have a tag like <myns:myelem></myns:myelem>, when it comes 
into the CF web service it's changed to <ns1:myelem></ns1:myelem>.

 So the combination of those two was throwing me off.

 Thanks for the help,
 Jim


<Prev in Thread] Current Thread [Next in Thread>