import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import org.apache.xmlrpc.XmlRpcException;
import java.net.URL;
import java.net.MalformedURLException;
import java.util.Collections;
/**
* The most trivial example, which demonstrates the ability to contact the remote
* API.
*/
public class Ping
{
private static final String PULSE_URL = "http:;
public static void main(String[] argv) throws MalformedURLException, XmlRpcException
{
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL(PULSE_URL));
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
String response = (String) client.execute("RemoteApi.ping", Collections.emptyList());
System.out.println("Response: " + response);
}
}