I believe that you just pass an empty Vector.  I keep one around as:

public static final Vector NO_PARAMS = new Vector();

Rather than always newing one to use.

John Volkar


-----Original Message-----
From: James Moger [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2003 9:58 AM
To: [EMAIL PROTECTED]
Subject: RPCs without parameters...


The spec for XMLRPC suggests that parameters are not required for RPCs.  The
Apache XMLRPC library seems to require parameters, no matter what.  There
are some RPCs I'd like to cleanup in my server code.  Some of my RPCs do not
need a parameter, but currently take a parameter because XmlRpcClient is
incapable of handling a null parameter vector.  Am I reading the spec
incorrectly?  Is there a way to issue an RPC without sending parameters?  I
could modify the XMLRPC source to force it, but that doesn't seem like a
very elegant solution.

"If the procedure call has parameters, the <methodCall> must contain a
<params> sub-item. The <params> sub-item can contain any number of <param>s,
each of which has a <value>. "

http://xmlrpc.org/spec

- James

Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

Reply via email to