[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    RE: RPCs without parameters...
From:       "Volkar, John" <John.Volkar () mckessonaps ! com>
Date:       2003-07-14 14:07:51
[Download RAW message or body]

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:James.Moger@TRANSONIC.com] 
Sent: Monday, July 14, 2003 9:58 AM
To: xmlrpc-user@ws.apache.org
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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic