Blog Archive for May 23, 2012

Calling Services with Apache xmlrpc client and Proxy

May 23, 2012

I needed to call a web service using Apache's xmlrpc client. Here's some example code for doing this:

try
{
  XmlRpcClientConfigImpl lConfig = new XmlRpcClientConfigImpl();
  lConfig.setServerURL(new URL(this.getUrlToCall()));

  XmlRpcClient lClient = new XmlRpcClient();
  lClient.setConfig(lConfig);

  Vector …