users@saaj.java.net

RE: [SAAJ-USR] In JWSDP 1.1 (WebLogic 8.1.4), can MessageFactory.createMessage() deal with UTF-8 properly?

From: Karr, David <david.karr_at_wamu.net>
Date: Thu, 11 Jan 2007 14:00:31 -0800

I discovered that the WebLogic implementation of SOAPMessageImpl can
have it's "charset" property directly set, so I can work around this
problem using this. I would hope a more recent version of SOAPMessage
deals with this better.

> -----Original Message-----
> From: Karr, David
> Sent: Thursday, January 11, 2007 12:57 PM
> To: users_at_saaj.dev.java.net
> Subject: [SAAJ-USR] In JWSDP 1.1 (WebLogic 8.1.4), can
> MessageFactory.createMessage() deal with UTF-8 properly?
>
> I have a tool which I've been using for quite a while for
> sending and testing SOAP messages. It's just a Java class,
> and I execute it from a command-line script. It works fine,
> but I've now run into a situation where I need to send some
> non-ascii characters in the message. I've defined the
> encoding in the message as UTF-8. I create a FileInputStream
> for the file, and pass that to
> "MessageFactory.createMessage()". From what I'm seeing, it
> appears that it's not honoring the character encoding of the
> message. When I read the message at the other end, the
> non-ascii characters are truncated or corrupted.
>
> I'm using a pretty old version of JWSDP, the one integrated
> into WebLogic 8.1.4, which is about version 1.1 of JWSDP.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_saaj.dev.java.net
> For additional commands, e-mail: users-help_at_saaj.dev.java.net
>
>