Skip to Content
Author's profile photo Eitan Rosenberg

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 .

/wp-content/uploads/2014/07/screenshot_02_499862.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 .

/wp-content/uploads/2014/07/screenshot_03_499855.png

/wp-content/uploads/2014/07/screenshot_04_499863.png

Have fun.

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      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.

      Author's profile photo Eitan Rosenberg
      Eitan Rosenberg
      Blog Post Author