on 09-05-2006 12:46 PM
Hi.
I have some problems regarding encoding.
The simple setup: dummy datatype as input, XSLT mapping and standard XI output(to JMS).
Are there any way to tell the JMS adapter to deliver the message in iso-8859-1 and not utf-8?
Regards Peter
Peter,
Refer to the Page 9 in this doc.
<b>XML2Plain Transform.ContentType text/plain;charset=iso-8859-1</b>
Try this in your JMS adapter.
Regards,,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's strange because JMS treats the message as binary. It should not convert it's content (differently of Soap adapter, which converts to UTF-8 per default, but you can use iso-8859-1 instead). That's why JMS adapter doesn't have an explicit way of setting the encoding.
Try XSLT a mapping with MessageTransformBean in JMS module processor tabs (it must be between a "convert binary to message" and a "convert message to binary" modules.
Regards,
Henrique.
Peter,
If using XSLT is not working, then one more option you can try is to develop a custome module and then change the encoding schema in this module,
Also, when you are using XSLT , and you have changed the encoding, did you check the payload in MONI.. what is the Encoding? Also, did you check the SOAP payload in the MDT . What is the encoding?
Regards,
Bhavesh
> Hi Henrique.
>
> This sounds like an idea. Can you guide me to some
> documentation, that describes adding mapping in the
> jms adapter module?
>
> Regards Peter
To use modules in JMS adapter: http://help.sap.com/saphelp_nw2004s/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm
Now, you add the MessageTransforBean module, to use the XSLT mapping. Check the end of this blog to learn how to use XSLT mapping on MessageTransformBean: /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Regards,
Henrique.
Hi,
You can change the encoding format in the XSLT mapping.
Thanks,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prakash.
I did that allready, with no success.:
<xsl:stylesheet version="1.0" ......>
<xsl:output method="xml" encoding="iso-8859-1" indent="yes"/>
............
............
............
</xsl:stylesheet>
When reading the message on MQ, it still refers to utf-8, and the special characters are not correct!
Regards...
Peter
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.