on 07-19-2006 1:37 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.