cancel
Showing results for 
Search instead for 
Did you mean: 

File to HTTP synchron call

Former Member
0 Kudos

Hi All

I have a scenario where I have to make synchron connection to a http receiver and get the answer

the scenario is that , a file scenario sends a question to the web adresse and waits for the answer , ok or not ok.

in this case do I have to create 2 synchron interfaces one outbound and one indbound , right.

Outbounf synchron interface for the file system

Reqout

Respout

Indbound synchron interface for the http system

Reqin

Respin

The mapping should be

Rqqout -


> Reqin

Respin -


 Respout

Plz tell med if I am doing it right.

How many communication channels and receiver determinations do I need

Best regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All

Thanks for the good answers, but it seems that the suggestion of Raj is worth trying

But I will refer to point 4 int the blog

4. We need to add a few modules in the Sender File Adapter.

Go to the Modules Tab of the Sender File Adater, and add the following modules in the same sequence,

Number - ModuleName - Type - ModuleKey

code1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1

2- CallSapAdapter-Local Enterprise Bean - 2

3-AF_Modules/ResponseOnewayBean-3[/code]

Parameters

ModuleKey - ParameterName - ParameterValue

code1 - passThrough - true

3-receiverChannel - Receiver File Adapter Name

3-receiverService - Receiver Business Service/ System[/code]

How can I get those modules to put in the File adapter under module tab , do I just have to add it as it mentioned in the blog.

Thank you once again.

Camilla

justin_santhanam
Active Contributor
0 Kudos

Camilla,

Yes , just enter the modules as mentioned by Bhavesh.

Number - ModuleName - Type - ModuleKey

1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1

2- CallSapAdapter-Local Enterprise Bean - 2

3-AF_Modules/ResponseOnewayBean-3

Parameters

ModuleKey - ParameterName - ParameterValue

1 - passThrough - true

3-receiverChannel - Receiver File Adapter Name

3-receiverService - Receiver Business Service/ System

raj.

Former Member
0 Kudos

Hi Raj

Thank u

I will try it and se what will happend

regards.

Former Member
0 Kudos

Hi Raj

I have designed the scenario according to the suggested weblog .

I have added the following under the module tab

communication channel cc_send_to_xtl

sender service Fileadapter

1 AF_Modules/RequestResponseBean Local Enterprise Bean 1

2 CallSapAdapter Local Enterprise Bean 2

3 AF_Modules/ResponseOnewayBean 3

1 passThrough true

3 receiverChannel cc_receive_from_xtl

3 receiverService FileAdapter

The strange thing is that the file is not being picked up by the channel , but when I remove the lines parameters from the module tab , the the file gets picked up and off course it shows error i sxi_monitor.

Am I doing any thing wrong in the module tab.

my best regards.

camilla

justin_santhanam
Active Contributor
0 Kudos

Camilla,

Please go through the wiki -https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file%28without+bpm%29&

Thanks for making me to write this wiki

raj.

Former Member
0 Kudos

Hi Raj

It is really well written, with detailes and screen prints.

but I still do not know why the file does not be picekd up from the folder by the file adpater when I am using the suggested modules .

any way thanks for the good blog and keep on the good work.

you will get maximum point from me.

regards camilla.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi cimalla,

file adapter is incapable of working in synchronous mode.

so in your case u have to go to BPM.

u have to create two asynchronous interfaces for file and one syn interface for Http.

regrads,

pradeep A.

justin_santhanam
Active Contributor
0 Kudos

Pradeep,

Please read the thread which I gave above.

raj.

Former Member
0 Kudos

ya,

i should have seen it before posting a message,

nice blog and very helpful.

regrads,

pradeep .

justin_santhanam
Active Contributor
0 Kudos

No Probes Pradeep, even I never knew it. I came to know very recently. It's good that we all know this functionality. Thanks and credits to Bhavesh.

raj.

justin_santhanam
Active Contributor
0 Kudos

Camilla,

Please check this thread.

Instead of RFC use HTTP.

raj.

Former Member
0 Kudos

Hi,

Please look at this blog: /people/venkataramanan.parameswaran/blog/2007/01/18/syncasync-communication-in-jms-adapter-without-bpm-sp19

Best regards,

VoyTech

Former Member
0 Kudos

Camilla, I don't understand you requirement.

So you have file, want to send it to HTTP and wait for the response? What do you want to do with the response message?

Well, if it is just File->HTTP, 1 synchronous interface is enough (but I don't understand the response... there is no way how file sender could process it)

Peter