Hi,
I am using async RPC call in an application built using Qooxdoo 0.8.2-sdk
and I am using example back-end provided with Qooxdoo implemented in perl.
In the client application I have something like this,
###########################################
var rpc = new qx.io.remote.Rpc();
rpc.setTimeout(1000);
rpc.setUrl("http://127.0.0.1:8080/cgi-bin/Qooxdoo/.qxrpc</exchweb/bin/redir.asp?URL=http://127.0.0.1:8080/cgi-bin/Qooxdoo/.qxrpc>
");
rpc.setServiceName("qooxdoo.test");
// asynchronous call
var handler = function(result, exc) {
if (exc == null) {
alert("Result of async call: " + result+exc);
} else {
alert("Exception during async call: " + exc+result);
}
};
rpc.callAsync(handler, "echo", "Test");
try {
var result = rpc.callSync("echo", "here");
alert("Result of sync call: " + result); } catch (exc) {
alert("Exception during Gulnaz call: " + exc); }
###############################################
And I have deployed the server back end @ apache server's cgi-bin directory
and jsonrpc.pl has following path settings
*************************************************
# Change this space-separated list of directories to include
# Qooxdoo::JSONRPC.pm and co-located Services
use lib qw(. Qooxdoo Qooxdoo\Services\qooxdoo);
*************************************************
With this I am getting null as result for Sync call and timeout for async
call.
Can you please help me in this regard, as I am new to Qooxdoo.
Regards
Narasimha
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel