0 Replies Latest reply on Feb 14, 2011 3:15 PM by fidjo

    Profiler mangles XML argument sent to web service

    fidjo

      The app I am working on uses web services, and some calls pass an XML string as a parameter.  When I call the ws from debug or release mode, things are OK, but when I use the profiler, the opening angle bracket gets converted to the HTML character entity >.  The web service is unable to process the mangled parameter.


                  var xml:XML = <Test/>;
                  xml.@ID = ID;
                  xml.@Name = name;

       

                  // the Alert looks OK in both profiler and debug         
                  mx.controls.Alert.show(
      xml.toXMLString());


                  // but the service is seeing something like "&gt;Test ID='xxx' Name='xxx'/>"

                  // rather than what it gets from the non-profiled app: "<Test ID='xxx' Name='xxx'/>"
                  _service.DoTheThing(xml.toXMLString());

       

      Any ideas or suggestions?