ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Berka <sbe...@poptal.com>
Subject Re: Calling methods without parameters
Date Fri, 26 Jul 2002 15:48:24 GMT
Your problem is about the function return value rather then no 
parameters.  Make the restart() function return something and you should be 
fine be fine.


At 03:53 PM 7/26/2002 +0200, you wrote:
>Hi,
>I got a problem trying to call a Java method without parameters through
>XmlRpcClient class.
>
>Here is a little code example and exception I get.
>
>Code:
>
>XmlRpcClient xmlrpc = new XmlRpcClient("http://localhost:25252/RPC2");
>xmlrpc.execute("SnmpCollector.restart", new Vector());
>
>
>// this is a function definition
>public void restart() {
>     // do the work here
>}
>
>Exception:
>org.apache.xmlrpc.XmlRpcException: java.lang.RuntimeException: null value
>not supported by XML-RPC

Stan Berka                 Programmer Annalyst
Portland, OR               Pope & Talbot
(503) 552-4315            Fax (503) 2202726


Mime
View raw message