on 11-15-2010 3:33 PM
Dear experts,
I want to create an XML file with codepage "iso-8859-1" from PI 7.11.
I have already tried to put the filetype to TEXT and ISO-8859-1 in the File Encoding field of my receiving CC (using the FTP adapter), but I still get an xml in codepage UTF-8.
It should also be possible to realise this via an XSL mapping, but where do I have to do this? Or is there any other way to use codepage ISO-8859-1?
Thanks in advance,
William
check the SAP note: 960663
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi William,
I am doing this with the XML anonymizer bean in my receiver CC.
Define an additional Bean in the Module Adapter:
AF_Modules/XMLAnonymizerBean.
And use this property:
anonymizer.encoding ISO-8859-1.
Reference:http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm
Hope it helps,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi William,
Write a simple XSLT mapping to change the value of the attribute "encoding" to "ISO-8859-1" in the output XML of message mapping . Include this XSLT map as the second mapping step in your interface mapping.
First step in your interface mapping will be your already existing message mapping.
Here is the XSL code !
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='xml' encoding='ISO-8859-1' />
<xsl:template match="/">
<xsl:copy-of select="*" />
</xsl:template>
</xsl:stylesheet>
Hope you can solve now ...if not pls let us know !
cheers,
Ram.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
thanks a lot for your reply.
I am using PI7, and when I look into the Operation mapping indeed my first line is the existing message mapping. Do I have to create a 2nd line with type XSL, and create a new mapping? But then to which node do I attach the XSL mapping you wrote, to the above one? Sorry but I have not worked with XSL mapping before...
Thanks and regards
William
Hi William,
Just do the following :
1. Create a " .xsl" file outside PI which contains the XSLT mapping code.
2. Bring into PI-ESR as Imported Archive object.
3. In Operation Mapping insert first .xsl file as mapping TYPE XSL.
4. Then in the second line enter your Message Mapping.
Then proceed as usual...
Cheers,
Ram.
Hi,
Use XMLAnonymizer bean(as suggested above).
Under Module tab:
Processing sequence:
AF_Modules/XMLAnonymizerBean LocalEnterpriseBean Bean1
ModuleConfiguration:
Bean1 anonymizer.acceptNamespaces http://infosys.com/poc ''
Bean1 anonymizer.encoding ISO-8859-1
Thanks
Amit
Hi,
please try this guide. It describes the codepage options:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
Regards,
Gábor
Hi,
The encoding what you have mentioned in file adapter should work if you are converting the XML into flat file. But if you are writting the output as XML , then you should eiether go for XSLT mapping encoding or use XMLAnonymizerBean in receiver file adapter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can do this change at Visual Administrator level. There are some parameters you need to edit and add IS0-8859, so that Integration engine will set for that encode.
So, you can ask the Basis guys to perform this.
This would certainly works out for you.
Regards
Pothana
Please note: I've already answered this in other thread posted by you it seems.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.