on 08-01-2016 3:23 PM
Hi Experts,
We are working on SAP PI 7.30 dual stack , our requirement is to convert xstring which is triggered as proxy(xml) from SAP ECC and which needs to be posted to webservice as an PDF file[as attachment file]. Here I guess that I need to decode a particular field in xml file from proxy whose data will be passed as an xstring to PI & PI needs to decode the xstring data and PDF file should be generated with that data and should be posted as an PDF file to webserver. Please let me know the feasibility of requirement in SAP PI?
Rgds,
Ramu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramu,
Yes that is correct. If you attach the file from the proxy, there would be little manipulation left to do e.g convert abap proxy message to the webservice message. Just check read attachments and keep attachments.
A pass-through scenario would be possible if the message sent by the abap proxy matches the one expected by the webservice.
Regards,
Mark
Mark,
I guess pass through wont be possible if PI is picking file from AL11 because the PDF has to be sent to web-service as an attachment .
So my guess would be instead of ECC placing file in the AL11 they can send the same file as an attachment to the proxy and in PI we can make it pass through.
Br,
Manoj
Hi Mark,Manoj,
Thanks for your time, so it will be a Proxy to SOAP async interface in PI perspective right? or can I go with NFS to SOAP [NFS for picking up file from AL11] which would need to send PDF file as an attachment to webservice i.e., I mean to ask whether NFS to SOAP is possible here or not? Also pls guide on NFS to SOAP interface to handle attachments.
If NFS to SOAP is not possible then say Proxy to SOAP & also client confirmed that ECC & Proxy structures would be same so I believe I can build pass-through scenario here. Also pls guide me on channel configuration in case of Proxy to SOAP scenario to handle PDF attachments since I am bit new to PI.
Thanks,
Ramu.
Ramu,
Proxy to SOAP Async :
You need to create sender and receiver service interface with the WSDL which is provided by third party webservice (or you can create a structure and share with third party the same).
Later ECC will generate proxy with the structure which you created and also they will attach the pdf file for the proxy and send and in PI you dont need to create mapping , just make sure you have 'Keep Attachment' in your soap channel.
NFS to SOAP Async :
Pick the file from NFS then write a java code to make this incoming payload(i.e pdf file) as an attachment to the output soap payload.
In both the case ID part configuration remains same with respective of SOAP receiver channel.
Br,
Manoj
Hi Manoj,
Thanks for ur time! Coming to NFS to Proxy scenario, ABAP program would generate the file in AL11 & PI should pick up and transfer to the webservice as an attachment. So I would like to go for pass-through & do you mean java mapping is required for this interface? If so kindly help on java code?
Thanks,
Ramu G.
Ramu,
You may use the code from this FTP to Proxy With Attachment | SCN thread with few minor changes with respective to your payload.
Br,
Manoj
Hi Manoj,
Thanks for your time!
Sorry it is NFS to SOAP scenario where the ECC will be sender & where the input file format would a PDF file which should be sent as an attachment to webservice. Do I need java mapping for File to SOAP scenario where the PDF would be an attachment to SOAP. Is it possible like this?
Thanks,
Ramu G.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.