You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by Calicrates Policroniades <Ca...@cl.cam.ac.uk> on 2004/05/26 18:26:24 UTC

client.execute ????

Hello,

Does anyone know why the API for the "execute" methods of the XmlRpcClient 
(XmlRpcClientLite) does not include a version without the argument parameters? 
So how am I supposed to call a method in the server that does not need any 
more parameters other than the name of the method? sending an empty vector? Is 
this a deliberated design decision?

Thanks,
Cali 


Re: client.execute ????

Posted by Ryan Hoegg <rh...@isisnetworks.net>.
Daniel L. Rall wrote:

> josh lucas wrote:
>
>> Calicrates Policroniades wrote:
>>
>>> Hello,
>>>
>>> Does anyone know why the API for the "execute" methods of the 
>>> XmlRpcClient (XmlRpcClientLite) does not include a version without 
>>> the argument parameters? So how am I supposed to call a method in 
>>> the server that does not need any more parameters other than the 
>>> name of the method? sending an empty vector? Is this a deliberated 
>>> design decision?
>>
>>
>> Yes, you would just pass an empty vector.
>>
>> I believe the spec requires that you send at least that, instead of 
>> just the method name.
>
>
> Hi Josh!
>
> Calicrates, it's reasonable that the client's API should insulate your 
> from this implementation detail.  Feel free to file an issue in 
> Bugzilla and attach a patch.
>
> - Dan


I have no objections to a no-arg convenience overload.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net/

... now if I could just remember to fax my CLA ...

Re: client.execute ????

Posted by "Daniel L. Rall" <dl...@finemaltcoding.com>.
josh lucas wrote:
> Calicrates Policroniades wrote:
> 
>> Hello,
>>
>> Does anyone know why the API for the "execute" methods of the 
>> XmlRpcClient (XmlRpcClientLite) does not include a version without the 
>> argument parameters? So how am I supposed to call a method in the 
>> server that does not need any more parameters other than the name of 
>> the method? sending an empty vector? Is this a deliberated design 
>> decision?
> 
> 
> 
> Yes, you would just pass an empty vector.
> 
> I believe the spec requires that you send at least that, instead of just 
> the method name.

Hi Josh!

Calicrates, it's reasonable that the client's API should insulate your from 
this implementation detail.  Feel free to file an issue in Bugzilla and attach 
a patch.

- Dan

Re: client.execute ????

Posted by josh lucas <jo...@stonecottage.com>.
Calicrates Policroniades wrote:

> Hello,
> 
> Does anyone know why the API for the "execute" methods of the XmlRpcClient 
> (XmlRpcClientLite) does not include a version without the argument parameters? 
> So how am I supposed to call a method in the server that does not need any 
> more parameters other than the name of the method? sending an empty vector? Is 
> this a deliberated design decision?


Yes, you would just pass an empty vector.

I believe the spec requires that you send at least that, instead of just 
the method name.


josh