Using XmlRpc in C++ and Windows

Tim Cooper picture Tim Cooper · Sep 16, 2008 · Viewed 8.7k times · Source

I need to use XmlRpc in C++ on a Windows platform. Despite the fact that my friends assure me that XmlRpc is a "widely available standard technology", there are not many libraries available for it. In fact I only found one library to do this on Windows, (plus another one that claims "you'll have to do a lot of work to get this to compile on Windows). The library I found was Chris Morley's "XmlRpc++". However, it doesn't have support for SSL.

My question therefore is: what library should I be using?

Answer

Tim Cooper picture Tim Cooper · Jun 16, 2009

I've written my own C++ library. It's available at sourceforge: xmlrpcc4win

The reason I wrote it rather than using Chris Morley's was that:

  • The Windows "wininet.lib" library gives you all the functionality for handling Http requests, so I'd rather use that. As a result, I only needed 1700 LOC.
  • "wininet.lib", and therefore my implementation, supports HTTPS
  • Chris Morley's use of STL containers was quite inefficient (Chris, mail me if you read this).