The WS-I Basic profile specifically states
that encoding must be either UTF-8 or UTF-16. Quoted: 4.1.11 Acceptable SOAP Character Encodings The
Profile requires all XML processors are required support the "UTF-8"
and "UTF-16" character encodings, in order to aid interoperability. As a
consequence of this, in conjunction with SOAP 1.1's requirement to use the
text/xml media type (which has a default character encoding of
"us-ascii"), the charset parameter must always be present on the
SOAP envelope's media type. A further consequence of this is that the encoding
pseudo-attribute of XML declaration within the message is always ignored, in
accordance with the requirements of both XML 1.0 and RFC3023, "XML Media
Types". R1012 A
MESSAGE MUST be serialized as either UTF-8 or UTF-16. R1018 The
media type of a MESSAGE's envelope MUST indicate the correct character
encoding, using the charset parameter. C When SOAP is used with the HTTP binding,
the media type is carried in the Content-Type HTTP header field. As a result, I would highly suggest you
change the encoding to support this requirement or you will loose compatibility
with other SOAP implementation. Rick From: Enrique
Rodríguez [mailto:[EMAIL PROTECTED] I downloaded de CVS
source code and i find this package org.apache.axis.components.encoding; I find that there is two
classes for encoding to utf-8 and to utf-16... What should i do to
create one to encode in ISO-8859-1?? Is posible to change the
xml-encoding of the soap message genreates by axis?? I think this is the problem
because the messages have this appearance. (Look to the bolds words.) Regards, Enrique. <?xml
version="1.0" encoding="UTF-8"?> <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body>
<ns1:obtenerCapacidadDeServicio
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://distribuidores.servicioweb.cegal"> <CIF
xsi:type="xsd:string">14258425N</CIF>
<libros href="">
</ns1:obtenerCapacidadDeServicio> <multiRef
id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:Libros"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://distribuidores.servicioweb.cegal">
<libro href="">
<libro href="">
</multiRef> <multiRef
id="id2" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Libro"
xmlns:ns3="http://distribuidores.servicioweb.cegal"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<ISBN xsi:type="xsd:string">8448234081</ISBN>
<autor xsi:type="xsd:string"></autor>
<cantidad xsi:type="xsd:int">0</cantidad>
<capacidadDeServicio
xsi:type="xsd:int">0</capacidadDeServicio>
<editorial xsi:type="xsd:string">Valencia (Comunidad Autónoma). Generalidad = València (Comunitat Autònoma). Generalitat</editorial>
<porcentajeIVA xsi:type="xsd:double">0.0</porcentajeIVA>
<precio xsi:type="xsd:double">0.0</precio>
<precioSinIVA xsi:type="xsd:double">0.0</precioSinIVA>
<titulo xsi:type="xsd:string">10 años del Programa de Prevención
del Cáncer de Mama = 10 anys de
Prevenció del Programa de Cà ncer
de MÃ ma</titulo>
</multiRef> </soapenv:Body> </soapenv:Envelope> _____________________________ Enrique Rodriguez
Lasterra NHT-Norwick.com |
- change soap messages xml encoding to iso-8859-1 Enrique Rodríguez
- RE: change soap messages xml encoding to iso-8859-1 Enrique Rodríguez
- RE: change soap messages xml encoding to iso-88... Rick Kellogg
- RE: change soap messages xml encoding to iso-88... Rick Kellogg
- RE: change soap messages xml encoding to iso-8859-1 Enrique Rodríguez
- Re: change soap messages xml encoding to iso-8859-1 Henrik Vendelbo
- RE: change soap messages xml encoding to iso-8859-1 Enrique Rodríguez