<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: XML entities in xs:base64Binary in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073675#M2880552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better use your own schema for the ABAP client proxy. Use STRING xsd type for BASE64 content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and once message into XI from SAP via proxy map it to the target webservice schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my WIKI section, here i used RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/XI/How" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/XI/How&lt;/A&gt;&lt;EM&gt;to&lt;/EM&gt;Send&lt;EM&gt;Binary&lt;/EM&gt;Data&lt;EM&gt;to&lt;/EM&gt;RFC&lt;EM&gt;from&lt;/EM&gt;XI%28or%29PI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 06:31:28 GMT</pubDate>
    <dc:creator>former_member181985</dc:creator>
    <dc:date>2011-07-20T06:31:28Z</dc:date>
    <item>
      <title>XML entities in xs:base64Binary</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaq-p/8073671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my first Post, and i hope i am at the right place in this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am integrating a third party application, that provides WSDL files for generating web services. An internal Web Service is creating an XML which is than encoded via base64 an sent as a SOAP message to the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the SOAP message contains an element (type xsd:base64Binary) in wich the base64 content is transported. The problem is, that in this base64 string, there are xml entities &amp;amp;amp;#xA; instead of the allowed base64 whitespace characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a hint, if these character entities can be supressed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 18:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaq-p/8073671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-19T18:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: XML entities in xs:base64Binary</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073672#M2880549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;Can anyone give me a hint, if these character entities can be supressed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#xA  represents next line. One way of suppressing this is using udf something as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;String str =" Hello &amp;amp;#xA world"
str.replace("&amp;amp;#xA",  ""):
return str;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Other option is using Java mapping or XSLT mapping based on your data requirement.&lt;/P&gt;&lt;P&gt;Note: Add ; at the end of &amp;amp;#XA in coding. The editor displays next line if I say &amp;amp;#xA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 18:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073672#M2880549</guid>
      <dc:creator>baskar_gopalakrishnan2</dc:creator>
      <dc:date>2011-07-19T18:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: XML entities in xs:base64Binary</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073673#M2880550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be able to give you a good advise, it is necessary to understand the full scenario.&lt;/P&gt;&lt;P&gt;That means: you is sender and receiver of the message, which adapter is used.&lt;/P&gt;&lt;P&gt;How come the hex 0A values into the message and why do they cause problems?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some base64 algorithms add a new line after 72 characters to make the XML more readable.&lt;/P&gt;&lt;P&gt;If the web service adds those characters, the receiver has to accept it.&lt;/P&gt;&lt;P&gt;Otherwise the sender should not add them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 00:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073673#M2880550</guid>
      <dc:creator>stefan_grube</dc:creator>
      <dc:date>2011-07-20T00:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: XML entities in xs:base64Binary</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073674#M2880551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but i think i cant do search and replace here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@David: the SOAP message containing the base64Binary element is sent from SAP to the application. It is created by a consumer proxy we generated from the WSDL files provided by the third party application (namely StreamServe) . The application cant handle the character entities &amp;amp;amp;#xA; the base64 string contains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also regenerated the proxy class, but there ist still a mapping from the xml schema type xsd:base64Binary to ABAP RAWSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error (or these character entities) occur, since we upgraded to EHP1, so i think there might be the cause for this behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 05:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073674#M2880551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-20T05:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: XML entities in xs:base64Binary</title>
      <link>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073675#M2880552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better use your own schema for the ABAP client proxy. Use STRING xsd type for BASE64 content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and once message into XI from SAP via proxy map it to the target webservice schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my WIKI section, here i used RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/XI/How" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/XI/How&lt;/A&gt;&lt;EM&gt;to&lt;/EM&gt;Send&lt;EM&gt;Binary&lt;/EM&gt;Data&lt;EM&gt;to&lt;/EM&gt;RFC&lt;EM&gt;from&lt;/EM&gt;XI%28or%29PI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 06:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/xml-entities-in-xs-base64binary/qaa-p/8073675#M2880552</guid>
      <dc:creator>former_member181985</dc:creator>
      <dc:date>2011-07-20T06:31:28Z</dc:date>
    </item>
  </channel>
</rss>

