cancel
Showing results for 
Search instead for 
Did you mean: 

RFC to HTTP (Async) and HTTP to RFC (Async)

Former Member
0 Kudos

Guys,

I have one scenario.

RFC need to be Executed (Async) to Fetch a XML file at one location.

Say. www.onecompany.com/details.xml

How should I Proceed.?

Which adapter should I use HTTP or SOAP.

Should I have combination of RFC to HTTP and the HTTP to RFC.

Kind of confuse.

Please help.

BD.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Use

/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit

Thanks

Former Member
0 Kudos

>>RFC need to be Executed (Async) to Fetch a XML file at one location.

so where does XI comes into this?

if you need to execute RFC to pull up data from some source,then you can do that simply via ABAP coding,please explain your requirement clearly

Thanx

Aamir

Former Member
0 Kudos

I am not sure how to answer you question. I am new in XI.

But I guess, our company is using only XI to communicate outside the SAP world.

RFC will be sender and HTTP or SOAP will be reciver and vis-versa.

But forget it.

i just want to bring that XML file into SAP via XI.

How to do it?

Former Member
0 Kudos

now its a bit clear:)

its a simple HTTP to RFC scenario,the XML file will be outside your landscape,the sender system(outside your landscape) will send the file via HTTP to the XI system which will in turn direct it to SAP R/3 system via a async RFC.

have a look at the below blog

/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit

this blog explain a sync scenario,yours is a async scenario so you don't need to do any response mapping.

Thanx

Aamir

Message was edited by:

Aamir Suhail

Former Member
0 Kudos

No , this will not help.

This is one part of the solution.

I often want to use this file which contain exchange rates, which is always changing.

So, SAP is the requestor (and reciver) and sender should provide this file only on request. What do you say now?

Former Member
0 Kudos

Bhagwan,

I think you are talking about a RFC --> HTTP synchrounous scenario

RFC from SAP system will send data requesting for exchange rates

HTTP would return the XML synchronously as response for the requested exchange rate

As this is synchronous the RFC response will have the exchange rate in the SAP system

Hope this is useful...

Former Member
0 Kudos

Now that makes sense.

But the problem here is, the file is very huge and dont want to use Syncronous scenario, because the scenario will have to wait until the complete file is transferd.

Which will result into timeout.

Any tips on that?

Also, any suggestions about using the proxies?

Former Member
0 Kudos

yes i think you could use proxy instead of RFC as you say file size is huge

now you could break it into 2 asynchronous interfaces as available in your Subject if the requirments permits you (i mean SAP system doesn't need a response but would send data asynchrnously)

Former Member
0 Kudos

Ok,

i am doing it in the way you suggested. (syncronous)

i have following problems.

1. How to configure the Reciver HTTP Adapter.

2. What should I use in Address Type.

HTTP Destination or URL Address.

3. If I use HTTP Destination , The length of the field is very short to accomodate complete address.

4. If I use URL address, what should I put in all the fields , like Target host, Service Number, path.

I have URL , something like this, www.yahoo.com/exchangerates.xml

I dont know what to put in Target Host, service name and host.

Please help.