cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Request with file name - PO

PavanKumar
Active Contributor
0 Kudos

Hi every one,

I am working on this scenario  SOAP REQUEST file name -PO - Should check FILE EXISTENCE CHECK IN FTP - if file is there it should send as an ATTACHMENT TO MAIL adapter.

I created the Two scenarios SOAP-PO-FTP  AND FTP-PO-MAIL interfaces are  triggering with file as an attachment to mail .

But what is missed in my scenario is logic ,

1)soap has to request with file name to PO how could i achieve this logic and

2) should check file existence in FTP

How could i do implement these logic.

Is it required to write adapter modules for this.....???  I don't know writing adapter modules any standard modules are there for this

Please suggest and share if any docs related to this scenario ..which suits my scenario i tried searching but couldn't found any docs or links....

kindly help me out of this one. i will award points ..too

Accepted Solutions (0)

Answers (4)

Answers (4)

iaki_vila
Active Contributor
0 Kudos

Hi Pavan,

My idea for your scenario is the next, to create a async SOAP - Mail scenario with file lookup. At mapping level you don't only check the existence, you take the file as well (this part may be don't fulfill your requirements). If the file doesn't exists you can throw an exception, or do you need a sync scenario with a SOAP response?

In this blog you have a good example of UDF with file lookup

Regards.

Former Member
0 Kudos

Hi Pavan,

please check the below link for the UDF to get the original attachment name from the SOAP request.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/07/01/retaining-soap-adapter-attachment...

Regards,

Santhi

nitindeshpande
Active Contributor
0 Kudos

Hi Pavan,

You need not use a FTP adapter in between the scenario. You can just have one scenario SOAP - PO - Mail. This can be done in the SOAP sender channel and ticking the checkbox "Keep Attachments".

And this attachment will be carried forward and attached to the mail request too.

Let me know if you need more help on this.

Regards,

Nitin

PavanKumar
Active Contributor
0 Kudos

Hi Nitin,

But in Requirement they mention Soap request with filename should check file existence in FTP Server then only it can be forwarded to MAIL as an attachement

I need help regarding how SOAP can request with file name any UDFS or adapter module configuration is required for this..Please let me know

Regards

Pavan D

Former Member
0 Kudos

Hi Pavan,

If your requirement is to generate file name for soap request while save it as file in FTP (Flow1),

write UDF for file name generation in mapping and same file name you can able to send to FTP.

and while placing file in to FTP ,if you need to check file with same name already exist:

if same file name already exist, then it will overwrite on it.

Regards,prasanth.

PavanKumar
Active Contributor
0 Kudos

Hi Prasanth,

Thanks for the response you mean Dynamic File Configuration UDF is required for this??

As I am not well in writing UDFS ,Could you please help on this.

Do we have standard code to implement this logic.If so please share.

Regards

Pavan D