cancel
Showing results for 
Search instead for 
Did you mean: 

Hexadecimals in XML

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

GabrielSagaya
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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