0 Replies Latest reply on Nov 8, 2006 3:21 PM by Oh_Mitch_!

    Webservice : problem with Base64 returned value

      Hello all,

      We are calling a webservice from a Flex2 application.

      When the returned value does not contain accentuated letters, we receive the value "as-is", everything is OK.

      When there is at least one accent, the result is automatically Base64 encoded by the server, and the xsi:type="n2:base64 is specified in the XML answer.

      The problem is that Flex2 does not Base64 decode the returned string, ans we cannot get the right value.
      We do not think that the problem is on the server, because we tryied to use 2 other webservice clients, and they worked well.

      We wonder if Flex2 can handle Base64 encoding on Webservice results or not.
      We thought abut using the Base64 decoder class, but it won't work because the result if not *always* Base64 encoded (depending if it contains some chars or not).

      Is there any solution to this issue ? If it can help, I paste the XML returned by the server at the end of this message.

      Thank you for your help.

      <?xml version="1.0" encoding="UTF-8" ?>
      <env:Envelope xmlns:xsd=" http://www.w3.org/2001/XMLSchema"
      xmlns:env=" http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
      <n1:GetArticleResponse xmlns:n1="urn:ActionWebService"
      env:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/">
      <return xmlns:n2=" http://schemas.xmlsoap.org/soap/encoding/"