I have a web service. Importing the WSDL into Flex Builder 3, Flex Builder generates proxy ActionScript classes to interact with my web service. Some of my web service methods accept strings as parameters. The strings contain xml.
I see that when Flex sends the SOAP request to my webservice it does some xml encoding of the body of the message. Here is the problem I see. All of my left angle brackets are getting encoded incorrectly by Flex. For example:
%26lt;recipe%26gt;
should get encoded as:
%26amp;lt;recipe%26amp;gt;
but instead it is double-encoding the left angle brackets so I get:
%26amp;amp;lt;recipe%26amp;gt;
The encoder is actually encoding the ampersand in %26amp;lt; again, after it has already been encoded to xml from %26lt;.
Has anyone else ran into this? I've been working with this app for a year and have never seen this happen. I haven't upgraded my version of Flex or anything. The problem seems to have just started happening out of the blue - which I know doesn't seem possible but nothing in my development environment has changed that should cause this. Any ideas?
No comments:
Post a Comment