From: Jacob Fugal Date: 2005-03-02T02:11:42+09:00 Subject: Re: [ANN] Orbjson, a JSON-RPC ORB for JavaScript/Ruby interaction On Tue, 1 Mar 2005 09:06:11 +0900, James Britt wrote: > Thanks. I hope to have another version out tonight or tomorrow. Great! > The other thing I'm unhappy about > is that the dynamically created client objects hang off the jsonrpc > object. So, if the server expose foo.bar, the client needs to call > jsonrpc.foo.bar, rather than simply foo.bar. But I see any reasons > this has to be; after the initial call to listServices the client should > be able to just build the corresponding client objects independently. Even as such, you can capture the service (or I'm guessing you can, I assume jsonrpc.service returns an object) in a variable to bypass the jsonrpc object on future requests. E.g. var calculator = jsonrpc.calculator; calculator.compute( 1, 2 ); // => 3 Thanks again, James, for the package! Jacob Fugal