Re: [Jsonrpc-cpp-devel] Issue with jsonrpc library.
Brought to you by:
s-vincent
From: Elestedt, F. <fr...@el...> - 2013-09-27 06:29:31
|
Please post the code where you register the function. Can you call any of the other RPC calls, except system.describe? If not, you have a problem in your server-side function registration. // Fredrik On Thu, Sep 26, 2013 at 9:20 PM, Anoop Ravi <ano...@gm...> wrote: > Hi All, > > I got an issue while using jsonrpc library. i am trying to call > the function getConnectedDevices which is registered with jsonrpc > server. But it is showing message as "Method not found.". But in > system.describe call, this function is showing as registered one. Can > anyone know why this is happening? > > Query is: > {"id":8,"jsonrpc":"2.0","method":"getConnectedDevices","param1":""} > > Received: {"error":{"code":-32601,"message":"Method not > found."},"id":8,"jsonrpc":"2.0"} > > Query is: {"id":7,"jsonrpc":"2.0","method":"system.describe","param1":""} > > Received: > {"id":7,"jsonrpc":"2.0","result":{"LoadModule":null,"UnloadModule":null,"getConnectedDevices":null,"setClientRoute":null,"system.describe":{"description":"List > the RPC methods available","parameters":null,"returns":"Object that > contains description of all methods registered"}}} > > -- > Anoop. > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk > _______________________________________________ > Jsonrpc-cpp-devel mailing list > Jso...@li... > https://lists.sourceforge.net/lists/listinfo/jsonrpc-cpp-devel > |