Re: [Cppcms-users] jsonrpc web service
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2012-01-12 10:15:28
|
>
>T hank you for your answers!
>
> Suppose I am using the person class in the json sample, can I do the following?
>
> void method(const person &p) {}
> bind("method",cppcms::rpc::json_method(&json_service::method,this));
>
Yes
> Another question is that what classes should I use if I want to use
> cppcms as a jsonrpc client?
>
CppCMS is server side if you want JavaScript
json-rpc client you have plenty tool-kits
like Dojo or JQuery.
You can also find under contrib/clinet_side/jsonrpc
simple implementation of JavaScript jronrpc client.
that is used in some examples I liked to.
Artyom
|