ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ThekkayilJoy Thomas <>
Subject Getting XmlRpcClientException when using xml rpc 3.1.3 jar
Date Wed, 19 Oct 2011 05:09:34 GMT

      I am trying to login to a nessus server using apache xml rpc 3.1.3 in
java. I am getting XmlRpcClientException. Upon debugging i can find that the
response is coming and even response message is coming as OK but the
response is not getting parsed properly.

It is giving sax parser exception.

Please let me know what i am doing wrong.


XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL("https://a.b.c.d:8834" ));
XmlRpcClient client = new XmlRpcClient();

Object[] params = new Object[] {new
Object result = client.execute("Login", params);

Output is:
Exception in thread "main" org.apache.xmlrpc.client.XmlRpcClientException:
Failed to parse server's response: Expected methodResponse element, got html

    at XmlRpcStreamTransport.readResponse(


View raw message