Hi

One more question regarding encoding. Does axis can handle a ISO8859 Latin1
charset (or any other except UTF8)?  Both through the Encoding HTTP header
and and encoding attributte in 'xml' processing instruction (<?xml
version="1.0" encoding="iso-8859-1"?>). If so, how this can be achived
(generating the ISO8859 Latin1 encoded call and handling the ISO8859 Latin1
encoded response)?

BR
Silvester

----- Original Message -----
From: "Yates, Danny (ANTS)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 12:08 PM
Subject: RE: encoding


Hi,

It's doing exactly what it should do.

You cannot represent the characters < and > directly in XML,
you must escape them. So your input document SHOULD be:

  <?xml version="1.0" encoding="UTF-8"?>
  <xyz>
  ��� � &lt;&gt;
  </xyz>

In which case, your SOAP message would look like this:

  <ns4:callResponse>
  <result xsi:type="xsd:string">

  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;xyz&gt;
  ö� (B -b?�? �? &amp;lt;&amp;gt;
  &lt;/xyz&gt;

When the SOAP message is decoded, you will have a string which
looks like the the first bit I quoted above (i.e. a serialised
representation of an XML document). If you pass this string to
an XML parser, you will get an "xyz" element which has a child
text node containing the characters "��� � <>"

This is really an XML question, not a SOAP/AXIS question.

Rgds,

Dan.

-----Original Message-----
From: Thomas Schr�ter [mailto:[EMAIL PROTECTED]
Sent: 25 February 2003 10:35
To: [EMAIL PROTECTED]
Subject: encoding


Hello,

I receive SOAP messages over the Axis Client which contained again XML data
as
parameter with umlauts and special characters (UTF8 encoded):

...
...
<ns4:callResponse>
<result xsi:type="xsd:string">


&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xyz&gt;
ö� (B -b?�? �? &lt;&gt;
&lt;/xyz&gt;


</result>
</ns4:callResponse>
...
...

Axis converts the result to:

<?xml version="1.0" encoding="UTF-8"?>
<xyz>
��� � <>
</xyz>

Now I'd like to parse the result but a SAXParseException is thrown, because
<> is not a valid Markup.

Can someone support me in this case ?

Regards,
Thomas







***************************************************************************
This communication (including any attachments) contains confidential
information.  If you are not the intended recipient and you have received
this communication in error, you should destroy it without copying,
disclosing or otherwise using its contents.  Please notify the sender
immediately of the error.

Internet communications are not necessarily secure and may be intercepted or
changed after they are sent.  Abbey National Treasury Services plc does not
accept liability for any loss you may suffer as a result of interception or
any liability for such changes.  If you wish to confirm the origin or
content of this communication, please contact the sender by using an
alternative means of communication.

This communication does not create or modify any contract and, unless
otherwise stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National
House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in
England under Company Registration Number: 2338548.  Regulated by the
Financial Services Authority (FSA).
***************************************************************************


Reply via email to