Skip to Content
author's profile photo Former Member
Former Member

Hexadecimals in XML

Hey!

I have a synchronous request coming in to a proxy in the ERP system. The request is an XML sent via XI's HTTP adapter.

My problem is that the content of the XML is read with hexadecimal values and causes problem for the mapping.

It starts off like this:

xmlInput=%3C%3Fxml%20version%3D%221.0%22%3F%3E%0D%0A%3C%21DOCTYPE

Anyone have any idea of how to remove the hexas from the payload? Is this possible for me at the receiver side or should the encoding be different on the sender side?

Thanks for all help!

regards Ole

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 30, 2007 at 09:32 AM

    There is no standard functionality for this.

    You have to write a Java mapping to transform the hex values to characters.

    In your case the source even cannot be recognised as XML, as the identifiers < > ? are escaped.

    Regards

    Stefan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 07:47 AM

    If you are getting special characters or european characters then the data when coming to XI should be in encoding ISO-8859-1 or ISO-8859-1.

    Also, please check if your SAP XI is configured for unicodes.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hey!

      Jepp, SAP XI is configured for unicodes.

      Do I need some special settings in the receiver adapter here (The receiver adapter that is not needed)? I am not able to tweak the encoding from the presystem so I have to see if there is any way to modify the payload before the mapping.

      regards Ole

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.