Which Java XML RPC library to use

Dreen picture Dreen · Nov 27, 2012 · Viewed 8.9k times · Source

There seems to be two options for using in normal :

  • javax.xml.rpc - seems more complicated but is a part of standard jdk (or is it?)
  • org.apache.xmlrpc - seems more easy to use, but i have to attach the library in my jar (or do i?)

Which one should I use for a dektop Java app? Or maybe there is another one that is really good and I have no idea it exists?

Answer

Dreen picture Dreen · Nov 28, 2012

I ended up going with with org.apache.xmlrpc, predominantly because my server does not send a WSDL file at all. This is not to say it would be impossible with JAX-WS. I am actually quite certain that JAX-WS is a more robust solution with many more features than Apache XMLRPC. However, the simple fact of the matter is I spent about 4 hours trying to implement user login to Drupal through JAX-WS with no results, after which I turned to Apache XMLRPC and had a working case in 10 minutes.