2008 Jul 22 9:15 AM
Hello,
The requirement is to read Bank Exchange Rates from the website,
http://www.nbp.pl/Kursy/xml/a141z080721.xml
I have tried to read it using the Function Module 'HTTP_GET'
with the parameters:
ABSOLUTE_URI http://www.nbp.pl/Kursy/xml/a141z080721.xml
REQUEST_ENTITY_BODY_LENGTH 1000000000
RFC_DESTINATION SAPHTTP
BLANKSTOCRLF X
TIMEOUT 5
But I get the error as
Exception CONNECT_FAILED
Message ID: 04 Message number: 100
Message:
Connect Error: NiHostToAddr proxy error: NIEHOST_UNKNOWN
Please let me know what am I doing wrong, or if there are some configurations that need to be done. Thanks in advance.
P.S: Deserving Answers will be given points.
2008 Jul 22 9:25 AM
Hi,
i make it in this way:
CALL FUNCTION 'HTTP_GET'
EXPORTING
ABSOLUTE_URI = URI
RFC_DESTINATION = 'SAPHTTP' "s. THTTP PräsenServer
RFC_DESTINATION = 'SAPHTTPA' "s. THTTP AppliServer
BLANKSTOCRLF = 'Y'
in URI is the webaddress.
It works OK.
Is there the correct entry in table THTTP?
Regards, Dieter
Hello,
The requirement is to read Bank Exchange Rates from the website,
http://www.nbp.pl/Kursy/xml/a141z080721.xml
I have tried to read it using the Function Module 'HTTP_GET'
with the parameters:
ABSOLUTE_URI http://www.nbp.pl/Kursy/xml/a141z080721.xml
REQUEST_ENTITY_BODY_LENGTH 1000000000
RFC_DESTINATION SAPHTTP
BLANKSTOCRLF X
TIMEOUT 5
But I get the error as
Exception CONNECT_FAILED
Message ID: 04 Message number: 100
Message:
Connect Error: NiHostToAddr proxy error: NIEHOST_UNKNOWN
Please let me know what am I doing wrong, or if there are some configurations that need to be done. Thanks in advance.
P.S: Deserving Answers will be given points.
2008 Jul 22 9:25 AM
Hi,
i make it in this way:
CALL FUNCTION 'HTTP_GET'
EXPORTING
ABSOLUTE_URI = URI
RFC_DESTINATION = 'SAPHTTP' "s. THTTP PräsenServer
RFC_DESTINATION = 'SAPHTTPA' "s. THTTP AppliServer
BLANKSTOCRLF = 'Y'
in URI is the webaddress.
It works OK.
Is there the correct entry in table THTTP?
Regards, Dieter
2008 Jul 22 9:36 AM
Hello Dieter,
I have the following information in the table THTTP,
MANDT 800
PROXY proxy:8080
PUSER
PPASSWORD
EXITFUNC ZHTTP_PROXY_CONFIG
Is this alright or are there any changes that need to done. Thanks for your help.
2008 Jul 22 9:45 AM
Hi,
it looks like using SAPHTTPA not SAPHTTP.
Try the FM with "SAPHTTPA" not "SAPHTTP".
Regards, Dieter.
2008 Jul 24 8:25 AM
Hi Nonconformist,
any positive result or do you any problems again?
Regards, Dieter
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |