cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP-FILE synchronous scenario

PratibhaK
Participant
0 Kudos

Hi,

I want to configure a Http to file synchronous scenario.

Message will be sent through the HTTP test tool. I have selected BestEffort as the QoS.

We do not want to use the repository objects.

Sample file say(<tag>this is a sample file</tag>) will be sent through HTTP test tool.

This file should be received by the File Receiver channel and dumped on the FTP.

In response, a file from some other folder on FTP should be sent.

How can this be achieved?

Regards,

Pratibha.

Accepted Solutions (0)

Answers (2)

Answers (2)

rajasekhar_reddy14
Active Contributor
0 Kudos

File adapter does not support sync scenarios..so you have to use BPM for this. elase devide your requirement in to two individual interfaces...

Regards,

Raj

PratibhaK
Participant
0 Kudos

Hi,

Even if the BPM is used, will it be possible to pick some file at a location on FTP and send as a response?

If yes, please explain..

regards,

Pratibha.

udo_martens
Active Contributor
0 Kudos

Hi Pratibha,

In that case the BP has to wait for the other file with a second receive step. The two messages need to be correlated with a unique number. The synchronous response from the BP will take a while.

Regards,

Udo

PratibhaK
Participant
0 Kudos

Hi Udo,

Can you throw some more light on the steps and process to be followed?

I am very much new to BPM..

Thanks,

Pratibha.

udo_martens
Active Contributor
0 Kudos

Hi Pratibha,

the standard sap help side is here very good

[Integration Processes (ccBPM)|http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm]

You need a receive step (synchronous) for for your http request. For this you need 3 abstract interfaces: 1 synchr IF, 1 async for request container, 1 async for resp container. You need to correlate with a unique number which the http sender has to send (f.e. date/time stamp)

Next may be a transformation (mapping) but not required.

Then a async send step to send the file.

The response file need to be created, the corresponding adapter should have a short poll intervall. The response file need to send the unique id as well.

The BP correlates the second receive step, next you can - like before optional - execute a transformation step.

Finally u close the sync/async bridge and send the response back. This will take assumedly a minute or more.

The whole design is may be not sufficient. Better ask if the requierments are changeable.

Regards,

Udo

udo_martens
Active Contributor
0 Kudos

Hi Pratibha,

synchronouns request/response is not possible as file / ftp is asynchronous.

You can instead have 2 asynchronous message http->ftp and ftp->http.

You need at least some dummy repository objects.

Regards,

Udo