cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP -> XI -> RFC

Former Member
0 Kudos

Hi all,

Is it possible get a file in a web page using HTTP adapter?

The problem is that I have to get a file in the URL http://www5.bcb.gov.br/Download/20060718.csv

This URL is a government one, and I don't have access to write a logic there.

Tks,

Daniela

Accepted Solutions (0)

Answers (2)

Answers (2)

dirk_roeckmann
Participant
0 Kudos

Hi Daniela,

write a function module and then use the RFC adapter:

the function module should use the class CL_HTTP_CLIENT

The method CREATE_BY_DESTINATION addresses the file URL which can be entered in SM 59 destination type HTTP and returns an object of type IF_HTTP_CLIENT.

This object has an attribute REQUEST of type

IF_HTTP_REQUEST.

Use the methods of this request object SEND and the RESPONSE atrribute to get the HTTP body.

Voila, you have the file content in a string, which can be transferred via RFC adapter to XI.

regards

Dirk

Former Member
0 Kudos

As per my knowledge, there is no way you can get this file in XI, as XI supports only HTTP POST at the receiver end. You need to use some application(for ex, a java application to 'GET' this file and store it some where( say, an FTP location) and then transfer this file thru XI.

Look at this thread.

Message was edited by: Jay