Re: [Cppcms-users] Fwd: Fwd: cppcms::rpc::json_rpc_server usage.
Brought to you by:
artyom-beilis
From: le ba <hma...@gm...> - 2012-05-29 14:33:04
|
Hi Artyom, Thanks for your help, it works fine now . An other article that are very important in cppcms document : "context is a central class that holds all specific connection related information. It encapsulates CGI request and response, cache, session and locale information *Instance of this class is created upon client requests, it provides access to all connection related interfaces*.* This class is unique per each applications hierarchy and destroyed when HTTP request/response is completed *". Thank you very much. 2012/5/23 Artyom Beilis <art...@ya...> > > > > > > >________________________________ > > From: le ba <hma...@gm...> > > > > > >By default cppcms::rpc::json_rpc_server don't dispatches Url by default > like cppcms::application. > >My problem is how to dispatch a dynamic page and activate the json_rpc > call after. > > > > > > JSON-RPC protocol returns JSON object in output and receives JSON object > as input... > Dynamic page returns HTML output to the client and optionally receives > some POST data as input... > > Decide what do you want to do. If you want some pages return HTML and > others use JSON-RPC protocol > read the documentation about application hierarchy > > > http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hierarchy > > Applications that should handle JSON-RPC should be derived from > cppcms::rpc::json_rpc_server > > others should behave as normal applications. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |