Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

The case of CL_HTTP_CLIENT & CL_IXML

$
0
0

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 .

screenshot_02.png

 

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 .

 

screenshot_03.png

 

screenshot_04.png

 

Have fun.


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>