Quantcast
Channel: SCN : Popular Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 971

How to send a PDF file with File name over proxy to the SAP system

$
0
0

Dear Experts,

 

I have a requirement to pick a pdf file using SFTP channel and then to send it to the SAP system over proxy with pdf file name.

 

I have created a data type for proxy  with two fields, one with the File name another with the file content. It is similar as  described below.

 

NameTypeOccurence
DEMO
FileContentxsd: base64Binary1
FileNamexsd: String1

 

 

I have used a UDF to get the file name of the pdf  and mapped this UDF to FileName field under datatype and used the dynamic file setting in the channel.

Sender channel has successfully picked up the file and sent it to adapter engine but it failed in the request message mapping stage under Pipeline  with following error : 

 

Runtime exception occured during application mapping

com/SAP/XI/tf/_MM_Test~

com.sap.aii.utilxi.misc.api.BaseRuntimeException : Content is not allowed in the prolog.

 

Although when I have sent the PDF with only one field as Filecontent, it is getting processed successfully.

 

Appreciate if any one can suggest any alternative/resolution. We have restriction to not use Integrated configuration in this case.

 

Regards,

Sudhir Kumar


Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>