cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Proxy - BASE64 content

silentbull
Participant
0 Kudos

Hi,

We have a requirement to send content in base64 encoded binary form. We have done all the encoding in ABAP and the BASE64 content is available in internal table.

We need to use ABAP proxy to send the data to XI and further to target client via http. The target message have a field called <Data> </Data> and i need to upload all encoded in that field. Is that ok or will the XML be invalidated? I am surprised that the third party asked me to upload in normal field of XML.

What should i declare in ABAP proxy? What is the best approach to send these kind of data in PI?

I have been hearing about something called <CDATA> where it is safe to send data in this as it ignores the content. How do i declare these in XI?

I was told that in normal XML if we add <content encoding="base64binary">then that XML will be parsed without any issues.

Regards

Sam

Accepted Solutions (1)

Accepted Solutions (1)

Pranil1
Participant
0 Kudos

Hi Sam,

XML will not be invalidated if you upload all encoded data in one field.

Also you can take care of Base64 encoding in PI itself.

Check the below links.

In PI

http://scn.sap.com/thread/3253305

http://scn.sap.com/thread/3409633

In ECC

http://scn.sap.com/thread/124427

Regards,

Pranil.

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Yes, it is OK to put all base64 data to one XML field.

In fact, this is what base64 is made for.

Base64 only consists of printable ASCII characters.

silentbull
Participant
0 Kudos

Hello Stefen,,

The problem is when you try to open the XML file in IE, it gives error stating valid xml not formed. But the end client is able to decode it successfully. So was thinking, whether this is the right way to send data.

Regards

Sam

former_member184720
Active Contributor
0 Kudos

Yes. It is and i think that is how it behaves..