The case of CL_HTTP_CLIENT & CL_IXML
Recently there were some mentions of getting XML using regular http requests in contrast to SOAP ( http://en.wikipedia.org/wiki/SOAP ) .
On the web or intranet there are many XML resources that can be consumed using any http client .
Those resources can be a simple links like this:
http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml
or
Web Services that can be consumed using regular http requests like this:
http://www.webservicex.net//globalweather.asmx/GetCitiesByCountry?CountryName=United%Kingdom
In program Y_R_EITAN_TEST_40_05 (attached) I demonstrate a program that use
http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml .
The main tools in this program are:
– CL_HTTP_CLIENT : get the XML from the server .
– CL_IXML : Parse the xml .
The result of those is an internal table that is presented using cl_salv_table .
The program assume that you need a proxy to get to the server so please enter your proxy info .
Have fun.
Hi Eitan,
Can you please explain what is Proxy host and Proxy port.
Where will I check them. Please provide me the details.
Thanks for helping.
Regards,
S Sridhar.
Hi ,
See
Regards.