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.

MiF

—————————-

<?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”>

<env:Body>

<n1:GetArticleResponse xmlns:n1=”urn:ActionWebService”

env:encodingStyle=”
http://schemas.xmlsoap.org/soap/encoding/”>

<return xmlns:n2=”
http://schemas.xmlsoap.org/soap/encoding/”

xsi:type=”n2:base64″>PD94bWwgdmVyc2lvbj0iMS4xIiBlbmNvZGluZz0iSVNPLTg4 NTktMSI/Pgo8

YXJ0aWNsZXM+CiAgPGFydGljbGU+CiAgICA8aWQ+MTwvaWQ+CiAgICA8Y29k

ZT5NaXRjaDwvY29kZT4KICA8L2FydGljbGU+CiAgPGFydGljbGU+CiAgICA8

aWQ+MjwvaWQ+CiAgICA8Y29kZT5Qb2xvPC9jb2RlPgogIDwvYXJ0aWNsZT4K

ICA8YXJ0aWNsZT4KICAgIDxpZD4zPC9pZD4KICAgIDxjb2RlPkvpa+k8L2Nv

ZGU+CiAgPC9hcnRpY2xlPgo8L2FydGljbGVzPgo=</return>

</n1:GetArticleResponse>

</env:Body>

</env:Envelope>

Related posts:

  1. Webservice woes
  2. Extra node added to my SOAP response
  3. Poblem with data services
  4. Base64 to string
  5. Problem managing Web Service answer in XML format

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD