on 12-06-2013 11:39 PM
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.