|
All jacked character data is supposed to use CDATA,
like so:
<string><![CDATA[<tag>testing</tag>]]></string>
Like the script tag in Flex. Is there not a
way to intercept .NET's response and wrap it?
----- Original Message -----
From: Michael Hansen
Sent: Tuesday, November 29, 2005 6:01 PM
Subject: Re: [flexcoders] Flex2 :: XML-RPC (char replacement
nuisance) I got a hold on what's going on. When sending a RPC request to the .net, it replies something like the following: <?xml version="1.0"?> <methodResponse> <params> <param> <value> <string>[HERE BE THE REPLY/PAYLOAD]</string> </value> </param> </params> </methodResponse> Now because .net regards what is inbetween <string></string> as a 'payload' wrapped in a RPC protocol, the data inside these tags cannot have chars like '<',and '>', since this would potentially invalidate the xml structure of the reply as a whole. Therefore whatever is between <string></string> is html-encoded, e.g. < translated to < Example: If the service was to return a xml dodument like <tag>testing</tag> the reply from the service would be: <?xml version="1.0"?> <methodResponse> <params> <param> <value> <string><tag>testing</tag></string> </value> </param> </params> </methodResponse> which is decoded by flex to a string (Flex correctly interprets the data received as 'raw' data as has no other choice) and _not_ a xml document. Therefore the data is not passed, and the Object tree is not created. I guess other rpc services do not html-encode the 'payload'?? Flickr(PHP??) seems to work just fine... Is Microsoft right in doing this encoding? Anybody out there a genius on RPC?? (less may also do it :) Cheers -michael PS. The linefeeds are definetly not the problem in this case. There's only one type (CRLF), and tests show that this works just fine. :) On 11/29/05, Matt
Chotin <[EMAIL PROTECTED]>
wrote:
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS
|
- Re: [flexcoders] Flex2 :: XML-RPC (char replacement nuisanc... JesterXL

