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 Bob DeAnna <bo...@zeosoft.com> on 2002/12/06 18:38:20 UTC

returning void on xml-rpc methods

Guys,

What is the reason for not suporting the returning of a void in xml-rpc
methods?

Is that dictated by the xml-rpc spec?

You are doing a great job with the xml-rpc server!!!

Thanks,
Bob



Re: returning void on xml-rpc methods

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Steffen Schwigon <sc...@webit.de> writes:

> "Bob DeAnna" <bo...@zeosoft.com> writes:
> > What is the reason for not suporting the returning of a void in xml-rpc
> > methods?
> > Is that dictated by the xml-rpc spec?
> 
> Yes.

There is an extension type, Nil, which is explicitly not supported by
XML-RPC.

What you can do instead is return a marker value known to represent
void, or simply have your handler return true and ignore the return
value entirely.
-- 

Daniel Rall <dl...@finemaltcoding.com>

Re: returning void on xml-rpc methods

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Steffen Schwigon <sc...@webit.de> writes:

> "Bob DeAnna" <bo...@zeosoft.com> writes:
> > What is the reason for not suporting the returning of a void in xml-rpc
> > methods?
> > Is that dictated by the xml-rpc spec?
> 
> Yes.

There is an extension type, Nil, which is explicitly not supported by
XML-RPC.

What you can do instead is return a marker value known to represent
void, or simply have your handler return true and ignore the return
value entirely.
-- 

Daniel Rall <dl...@finemaltcoding.com>

Re: returning void on xml-rpc methods

Posted by Steffen Schwigon <sc...@webit.de>.
"Bob DeAnna" <bo...@zeosoft.com> writes:
> What is the reason for not suporting the returning of a void in xml-rpc
> methods?
> Is that dictated by the xml-rpc spec?

Yes.

Steffen
-- 
Steffen Schwigon <sc...@webit.de>


Re: returning void on xml-rpc methods

Posted by Steffen Schwigon <sc...@webit.de>.
"Bob DeAnna" <bo...@zeosoft.com> writes:
> What is the reason for not suporting the returning of a void in xml-rpc
> methods?
> Is that dictated by the xml-rpc spec?

Yes.

Steffen
-- 
Steffen Schwigon <sc...@webit.de>