cancel
Showing results for 
Search instead for 
Did you mean: 

Download file (currency exchange rates) from url is not working with AXIS

shabbir_mohmad
Participant
0 Kudos

Hi ,

I have scenario like: download file from url : http://<xxxxxxx>.com (which is having currency exchange rates) and place it on a folder.

I tried using AXIS with HttpGetter Handler, but it is failing with error : 'error during receive: java.net.SocketTimeoutException: Read timed out'

I tried the same scenario with below approach and its working.

successful Approach:

----------------------------------------------

1st scenario: File (dummy) to File (dummy).

On Receiver file adapter written a script with command : 'wget http://www.<url>.com'.

After I get file, I placed on a PI folder.

2nd scenario:

file to SAP

Picked the above file and sent to SAP.

-------------------------------------------------

But I need to try this using AXIS way.My config screen is below.

Please help.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member217888
Participant
0 Kudos

Hi,

How did u get ur problem solved?

I am stuck at the same SOAP AXis channel. My channel is Green and in started mode but its not polling anything.

Also, if possible can u give me details about ur first approach.

"successful Approach:

----------------------------------------------

1st scenario: File (dummy) to File (dummy).

On Receiver file adapter written a script with command : 'wget http://www.<url>.com'.

After I get file, I placed on a PI folder.

2nd scenario:

file to SAP

Picked the above file and sent to SAP."

Thanks

Neha

asdasd_asdasd
Active Participant
0 Kudos

Check the "http proxy" and "Task Class" :

former_member182455
Active Contributor
0 Kudos

Hi SP,

Have you downloaded xml files or csv files. If the file is CSV, you can use the modules.

Regards

Srinivas

rcsegovia
Active Participant
0 Kudos

Hi Srinu,

PLease check your configuration according also let you know there is an standard program in SAP to do it directly from ECB:Update Foriegn Exchange Rates from Internet on daily basis

cheers,

Roberto.

shabbir_mohmad
Participant
0 Kudos

Hi Roberto,

Thanks for the update.

My configuration is similar to that of Michal guidance.

Due to some limitation, I need to fetch this from PI only.

Regards,

Shabbir.

rcsegovia
Active Participant
0 Kudos

Hi,

So check your connectivity team that you can reach the URL from PI server.

Regards,

Roberto.

asdasd_asdasd
Active Participant
0 Kudos

Please re-check your "Task Class" in the CC, is wrong:

Wrong Task Class = "com.sap.aii.adapter.axis.ra.transport.http.HTTPGetter"

Working Task Class = "com.sap.aii.axis.transport.http.HTTPGetter"

former_member182455
Active Contributor
0 Kudos

Hi SP,

Please check and use the Https:// XXXXXXXXXX or remove the http:// and use from www.XXXXX

Regards

Srinivas

shabbir_mohmad
Participant
0 Kudos

Hi Srinu,

Even after changing it from http to https, it is throwing the same error.

changed url: https://www.xxx.com/daily.txt

Regards,

Shabbir