cancel
Showing results for 
Search instead for 
Did you mean: 

PDF through a REST communication channel

harish_babu5
Participant
0 Kudos

Hi all,

I have a scenario, ECC to PI synchronous scenario. ECC wants to send a PDF to the receiver webservices. It's a REST receiver and we are using POST method.

Is it possible to send PDF through REST webservice?

ECC can send the PDF as xstring in a field but I am not able to see that option, I cannot create a structure with a field as xstring or binary.

Other option would be to create xsd and use that at sender side. ECC Proxy coding should be done at the xsd structure.

What is the best possible option to do this scenario?

Regards

Harish Babu

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor

Harish,

If you are on or above 7.5 SP07 then you can send Pdf as Attachment as rest adapter supports attachment from this version.

In case if you are on lower version you can ask ABAP team to convert the PDF to Base64 and send it via proxy . Base64 is one of the available XSD type in PI so you define in data type.

But before proceeding check with the REST API team if they would be able to convert back this base64 content back to pdf if yes then you can proceed.

Br,

Manoj

Answers (3)

Answers (3)

former_member764656
Discoverer
0 Kudos

Hi Harish

were you able to manage to push to PDF using REST?

harish_babu5
Participant
0 Kudos

Thanks Manoj, Srikanth

Former Member
0 Kudos

Hi Harish,

I have recently developed the same interface of sending notification pictures to salesforce. I asked ABAPer to send images in base 64 format and was able to send successfully to target system. No issues. you can try the same.

Thanks,

Srikanth