cancel
Showing results for 
Search instead for 
Did you mean: 

PI How to Extract PDF as xsd:base64binary to Payload

Former Member
0 Kudos

Hello PI Experts:

We have created an RFC to extract PDF documents from the SAP DMS repository.

So far we are only able to see the XML tag in the successful Payload output but the the PDF data is not sent, here is one example below (but even when we have modified the RFC to output the xsd:base64binary at 2nd level still the same result):

Ideally, we would like to be able to accept as many images as the RFC can generate (unlimited) into an XML Payload since the requestor may request multiple documents on the interface screen. One PDF in XML would be good, many would be great!

Any thoughts that can be shared would be most appreciated! Criticism for not seeing the obvious also accepted!

Thanks

John (Jim)

Accepted Solutions (0)

Answers (3)

Answers (3)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Jim,

what is the issue as I don't get it to be honest ? you can put the base64 into any XML tag so why don't you see it if the RFC is working ?

Regards,

Michal Krawczyk

Former Member
0 Kudos

Michal:

As you see above the Payload appears to have no data (used SOAPUI with the WSDL to generate the response) - is it possible that SOAPUI is just not able to display it?

John

markangelo_dihiansan
Active Contributor
0 Kudos

Hello John,

Silly question but have you checked the Read Attachments option in the Operation Mapping? Also, as much as possible just use xsd:string when passing base64 content. Just do the casting from string to base64(raw type in ABAP) inside your RFC code.

Hope this helps,

Mark

anupam_ghosh2
Active Contributor
0 Kudos

Hi Jhon,

               Could you please upload the image of input payload? Need to check inbound payload.

With the same payload did you try testing the mapping in test tab? I think other option to include the PDF data is to use CDATA in the field. Thus instead of using base64 you can directly put the PDF content in CDATA segment, this will stop parser to interpret the content of the field.

Regards

Anupam