If you pass XML as a string to a web service you end up double-encoding the
XML, kinda like this:

<soap:Envelope>
  <soap:Body>
    <message>
      <argument>
        &lt;?xml version='1.0'?&gt;
        &lt;root&gt;
          &lt;child/&gt;
          &lt;child/&gt;
          &lt;child&gt;
            &lt;grandchild/&gt;
          &lt;/child&gt;
        &lt;/root&gt;
      </argument>
    </message>
  </soap:Body>
</soap:Envelope>

Obviously SOAP isn't supposed to look like that.  If you want to work with
this data you have to parse it twice.. once to get the soap and a second
time to get the data (CFMX does the first parsing for us).

AFAIK, there is no way to pass XML as an argument to a web service.

Sam




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Sean A Corfield
Sent: Wednesday, May 28, 2003 2:54 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] XML Argument to Web Service


On Wednesday, May 28, 2003, at 00:40 US/Pacific, DDE wrote:

Sorry, cannot find it back in the archive .. What would be the best way to
define the arguments of a CFC Method with remote access, that should receive
an XML doc, knowing it could be invoked by my application or consumed as a
web service by non CF applications


Pass it in/out as type="string"

Sean

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to