on 06-17-2010 9:00 PM
Hi Guys,
I am facing problem in the character conversion
I am posting data from SAP to third party system using XI , by converting whole input message to a String .I am using SOAP adapter to communicate XI to third party system.
Thirdparty system needs String to be wrapped in CDATA so that it will not choke by looking at the special characters. I did Wrap the output string in CDATA, using ABAP mapping but when I do that XI is converitng arrow brackets < and >. into < and u2018>u2019 my assumption is it is double encoding.
example -
before map - <AppSystemInfo>
after mapping it is converted as - <![CDATA[ <AppSystemInfo>]]>
Edited by: Vamsi on Jun 17, 2010 10:00 PM
Edited by: Vamsi on Jun 17, 2010 10:01 PM
Did you try to see the output?
bcz if you are trying this in mapping testing it will show you like this as this conversion if for xml, so xml will not do anything wrong with the special characters, so for that special characters will be converted like that.
Once try to run end to end interface and try to see at receiver side that how data looks like.
Thanks,
Hetal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vamsi,
I would suggest you to go with XSLT mapping to convert String to xml.
you can use the below code by importing the same in ESR as.xsl file.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://www.yourmessage.com">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:template match="/">
<m:RequestMessage>
<m:SimpleTag>
<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[
]]
>
]]>
Please revert back for further info
Thanks
Nidhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.