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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |