You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "Se-yong, Um" <ar...@hanbbs.net> on 2001/06/18 10:34:33 UTC

Does SOAP2.2 support multibyte character?

I deploy one D/D and I tried below request, it worked well

POST /soap/servlet/messagerouter HTTP/1.1
HOST: my ip:port
Content-Type: text/xml; charset=UTF-8
Content-Length: 462
SOAPAction: "ebXML"

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<eb:Manifest SOAP-ENV:mustUnderstand="1" eb:version="1.0" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
<eb:Reference xlink:href="cid:ebxmlpayload1" xlink:type="simple">
<eb:Description xml:lang="en-us">Purchase Order 1</eb:Description>
</eb:Reference>
</eb:Manifest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



But below does not.

POST /soap/servlet/messagerouter HTTP/1.1
HOST: my ip:port
Content-Type: text/xml; charset=EUC-KR
Content-Length: 462
SOAPAction: "ebXML"

<?xml version='1.0' encoding='EUC-KR'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<eb:Manifest SOAP-ENV:mustUnderstand="1" eb:version="1.0" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
<eb:Reference xlink:href="cid:ebxmlpayload1" xlink:type="simple">
<eb:Description xml:lang="en-us">구매오더 1</eb:Description>
</eb:Reference>
</eb:Manifest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

"구매오더" is multibyte-character(korean).

Exception related 'well-formed document' was thrown.

Does SOAP2.2 support multibyte character?

--
Se-yong, Um
Republic of Korea

Re: Does SOAP2.2 support multibyte character?

Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
The question is actually whether the XML parser you used with
Apache SOAP supports the charset you used. If it does then
it should work just fine! Which parser did you use? As Apache
SOAP v2.2 is JAXP enabled you can use any JAXP compatible
parser.

Sanjiva.

----- Original Message -----
From: "Se-yong, Um" <ar...@hanbbs.net>
To: <so...@xml.apache.org>
Sent: Monday, June 18, 2001 4:34 AM
Subject: Does SOAP2.2 support multibyte character?


> I deploy one D/D and I tried below request, it worked well
>
> POST /soap/servlet/messagerouter HTTP/1.1
> HOST: my ip:port
> Content-Type: text/xml; charset=UTF-8
> Content-Length: 462
> SOAPAction: "ebXML"
>
> <?xml version='1.0' encoding='UTF-8'?>
> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Body>
> <eb:Manifest SOAP-ENV:mustUnderstand="1" eb:version="1.0"
xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
> <eb:Reference xlink:href="cid:ebxmlpayload1" xlink:type="simple">
> <eb:Description xml:lang="en-us">Purchase Order 1</eb:Description>
> </eb:Reference>
> </eb:Manifest>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
>
> But below does not.
>
> POST /soap/servlet/messagerouter HTTP/1.1
> HOST: my ip:port
> Content-Type: text/xml; charset=EUC-KR
> Content-Length: 462
> SOAPAction: "ebXML"
>
> <?xml version='1.0' encoding='EUC-KR'?>
> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Body>
> <eb:Manifest SOAP-ENV:mustUnderstand="1" eb:version="1.0"
xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
> <eb:Reference xlink:href="cid:ebxmlpayload1" xlink:type="simple">
> <eb:Description xml:lang="en-us">구매오더 1</eb:Description>
> </eb:Reference>
> </eb:Manifest>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> "구매오더" is multibyte-character(korean).
>
> Exception related 'well-formed document' was thrown.
>
> Does SOAP2.2 support multibyte character?
>
> --
> Se-yong, Um
> Republic of Korea
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: Does SOAP2.2 support multibyte character?

Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
The question is actually whether the XML parser you used with
Apache SOAP supports the charset you used. If it does then
it should work just fine! Which parser did you use? As Apache
SOAP v2.2 is JAXP enabled you can use any JAXP compatible
parser.

Sanjiva.

----- Original Message -----
From: "Se-yong, Um" <ar...@hanbbs.net>
To: <so...@xml.apache.org>
Sent: Monday, June 18, 2001 4:34 AM
Subject: Does SOAP2.2 support multibyte character?


> I deploy one D/D and I tried below request, it worked well
>
> POST /soap/servlet/messagerouter HTTP/1.1
> HOST: my ip:port
> Content-Type: text/xml; charset=UTF-8
> Content-Length: 462
> SOAPAction: "ebXML"
>
> <?xml version='1.0' encoding='UTF-8'?>
> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Body>
> <eb:Manifest SOAP-ENV:mustUnderstand="1" eb:version="1.0"
xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
> <eb:Reference xlink:href="cid:ebxmlpayload1" xlink:type="simple">
> <eb:Description xml:lang="en-us">Purchase Order 1</eb:Description>
> </eb:Reference>
> </eb:Manifest>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
>
> But below does not.
>
> POST /soap/servlet/messagerouter HTTP/1.1
> HOST: my ip:port
> Content-Type: text/xml; charset=EUC-KR
> Content-Length: 462
> SOAPAction: "ebXML"
>
> <?xml version='1.0' encoding='EUC-KR'?>
> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Body>
> <eb:Manifest SOAP-ENV:mustUnderstand="1" eb:version="1.0"
xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
> <eb:Reference xlink:href="cid:ebxmlpayload1" xlink:type="simple">
> <eb:Description xml:lang="en-us">구매오더 1</eb:Description>
> </eb:Reference>
> </eb:Manifest>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> "구매오더" is multibyte-character(korean).
>
> Exception related 'well-formed document' was thrown.
>
> Does SOAP2.2 support multibyte character?
>
> --
> Se-yong, Um
> Republic of Korea
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org