on 10-12-2012 9:51 AM
Hi,
We have a scenario where we would need send a CSV file as attachment using webservices.
As we are using PI 7.1.1, let me know whether it can be done using soap adapter and that do we need to write any modules to support it.
Also, how many attachments can we send in a soap message and that whether the attachment to be incorporated in header/payload.
Please guide for any blogs on the same. I was told that they support SOAP/REST. Is it something new in PI? The target systems sits on a cloud based services.
Regards
Anandh.B
Hi AnandhaKrishnan,
At first, you should told us what is your scenario
File - PI - SOAP?
SOAP - PI - SOAP?
Do you need to modify or access to csv in mapping runtime?
If you only want to keep the attachments that you are receiving by Sender SOAP adapter you only need to check the checkbox "Keep Attachments",in the receiver SOAP as well.
If your scenario is FILE - SOAP, you could do a java mapping or UDF to construct the attachment. Check this thread and the blog that pointed http://scn.sap.com/thread/1849611
Please guide for any blogs on the same. I was told that they support SOAP/REST. Is it something new in PI? The target systems sits on a cloud based services.
Check these blogs:
Michal Krawczyk's blog:
http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/01/05/michals-pi-tips-exchange-rates-fr...
William Li's blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/07/integrating-rest-services-on-pi
Peter Ha's blog, with advantco adapter, http://scn.sap.com/people/peter.ha3/blog/2011/11/08/rest-adapter-for-netweaver-sap-pi
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Inaki,
The scenario is File to SOAP receiver.
The target systems requires the csv files either to be attached in soap envelope or encoded as base64.
As the CSV files are yet to be finalised, there might be two scenarios where Mapping might require or directly the files to be sent as Attachments.
I am also looking at an option of base64 encoding, is it straightforward in PI ? Any other suggestions would be quite helpful.
Regards
Anandh.B
Hi AnandhaKrishan,
The sender file adapter allows to take the file as attachment http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404ee507-3fbc-2e10-00bc-be90ab28d...
Now the problem comes, i don't know if the PI can use the receiver soap adapter without ESR implementation and the attachment could go to the receiver soap adapter. You could try it, it's interesting this possibility.
Another solution is to access to the attachment and encoded in a UDF: check these thread
- For read an attachment: http://scn.sap.com/thread/1341089
- For write an attachment: http://scn.sap.com/thread/1918880
And in the same UDF or java mapping to enocde in base64.
Regards.
Any thoughts on this gurus!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Gurus,
This is what the requirement is. If passing files as soap attachment is difficult, can you let me know how it can be directly encoded in soap envelope.
Files must be passed as SOAP attachments or directly encoded in Base64 in the soap envelope:
Does it mean that the CSV data will be copied in soap envelope. Please share some thoughts on this.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.