Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Java XML RPC library to use

There seems to be two options for using xml-rpc in normal java:

  • 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?

like image 858
Dreen Avatar asked Nov 27 '12 10:11

Dreen


1 Answers

I ended up going 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.

like image 122
Dreen Avatar answered Oct 20 '22 21:10

Dreen