You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Nimal Risken <mg...@flisgen.de> on 2006/04/02 17:36:13 UTC

Failed to parse servers response: Unknown type: string

Hello together,

when i try to call the ping method from neos-server i get the following error code:
org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers response: Unknown type: string


Code:
-----


import java.io.*;
import java.net.*;
import java.util.Vector;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import org.apache.xmlrpc.client.XmlRpcClient;

public class XmlRPC{

public static void main(String[] agrs) throws Exception{
   XmlRpcClientConfigImpl konfig = new XmlRpcClientConfigImpl();
   konfig.setServerURL(new URL("http://neos.mcs.anl.gov:3332"));

   XmlRpcClient server = new XmlRpcClient();
   server.setConfig(konfig);

   //Parameter
   Object[] param = {};

   //Serverfunktion aufrufen
   System.out.println(server.execute("ping",param));
}

}