XML-RPC Service uses the standard XML-RPC protocol to access remote calculations. The XML for the request is automatically generated from the provided attributes and arguments, and the response is parsed to unwrap the result of service call.
Calling XML-RPC Service from API
XMLRPCServiceDescriptor descriptor = new XMLRPCServiceDescriptor(); descriptor.setURL("http://sample.server.net/xmlrpc"); descriptor.setMethodName("SampleService.countAtoms"); descriptor.addArgument(ServiceArgument.createArgument("")); descriptor.addArgument(ServiceArgument.createArgument("")); Object result = null; try { result = descriptor.getServiceHandler().callService(descriptor, "C1CCNCCC1", "C"); } catch (ServiceException e) { System.err.println("Service call failed."); } System.out.println("Synchronized call returned: " + String.valueOf(result)); descriptor.getServiceHandler().callService(descriptor, new AsyncCallback<Integer>() { @Override public void onSuccess(Integer result) { System.out.println("Asynchronous call returned: " + result); } @Override public void onFailure(ServiceException caught) { System.err.println("Asynchronous call failed."); } }, "C1CCNCCC1", "C");