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

List:       xmlrpc-user
Subject:    Re: RPC With A Dynamic Number of Variables
From:       "Elam Daly" <elam.daly () gmail ! com>
Date:       2008-07-15 19:53:44
Message-ID: c532cc760807151253y4775303x6f2cabbaea2041b6 () mail ! gmail ! com
[Download RAW message or body]


Thanks for the replies.

I don't suppose I could get a small bit of direction here?

My original setup is exactly like the calculator demo.  Am I now to change
my class to extend the XmlRpcServlet class and implement a custom
XmlRpcHandler, similar to the documentation example of Basic Authentication?

- Elam

On Tue, Jul 15, 2008 at 11:44 AM, Craig Kelley <namonai@gmail.com> wrote:

> Hi Elam,
>
> I'm not certain about XMLRPC 3.x, but with 1.x you could override the
> execute() method for XmlRpcHandler and do this sort of thing.  We use
> it along with introspection to route calls to various places.
>
>  -Craig
>
> On Tue, Jul 15, 2008 at 9:39 AM, Elam Daly <elam.daly@gmail.com> wrote:
> > Jochen,
> >
> > just so I'm clear, are you suggesting to change my current method
> signature
> > from myRPC(var_1, var_2, var_x) to myRPC(Object[] obja) and then parse
> the
> > array and forward to the appropriate method?
> >
> > Stano,
> >
> > The client is using PHP and when they try and execute my RPC, they get an
> > error claiming the method doesn't exist because there isn't one matching
> the
> > method signature that they are trying to use.
> >
> > If I call the calculator RPC with Object[] params = new Object[]{new
> > Integer(33), new Integer(9), new Integer(10)};. afaik that won't work
> > because the add method is only expecting 2 parameters, not 3.
>
> --
> http://inconnu.islug.org/~ink <http://inconnu.islug.org/%7Eink> finger
> ink@inconnu.islug.org for PGP block
>


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

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