cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Outbound proxy attachment to CPI Encoding Problem

dan166
Explorer
0 Likes
3,776

I am working on a scenario where I want to upload an XML file in ABAP and send it as an attachment through an outbound proxy to the CPI/IS for further processing.

As a PoC, I am uploading an XML file from the frontend and attaching it to the proxy as string using the corresponding attachment classes and methods. This generally works fine and in SXMB_MONI I see the attachment correctly presented, even German umlaute like <POTX1>äöüÄÖÜ</POTX1>.

In the CPI/IS, I have a groovy script based on Morten Wittrocks blog that retrieves the attachment from the proxy message and puts it into the message body for further processing. Everything looks fine, except that the German umlaute are showing up as <POTX1>äöüÄÖÜ</POTX1> now.

Did anybody experience a similar issue and solved it or has an idea how this could be handled to show those characters correctly?

Thanks in advance for the feedback,

Daniel

View Entire Topic
RaymondGiuseppi
Active Contributor
0 Likes

For those western Europe characters (e.g. German umlauts, French accented characters) try using ISO8859-1 (Latin-1) encoding specified in front of the root element (sample) to prevent a parsing error 201

<?xml version="1.0" encoding="ISO8859-1"?>
dan166
Explorer
0 Likes

Thank you Raymond for your suggestion. Unfortunately, this doesn't make it any better