for both jayrock json rpc service and qooxdoo client, the below works in both
synchronous fashion and asynchronous fashion (makes me feel very happy)
the web service looks like this
public class HelloWorld : JsonRpcHandler
{
[JsonRpcMethod("greetings")]
public string Greetings()
{
return "Welcome to Jayrock!";
}
in the qooxdoo client I now have this
var rpc = new qx.io.remote.Rpc(
"http://localhost/JayrockTestService/HelloWorld.ashx"
);
// synchronous call
try {
var result = rpc.callSync("greetings");
alert("Result of sync call: " + result);
} catch (exc) {
alert("Exception during sync call: " + exc);
}
var handler = function(result, exc) {
if (exc == null) {
alert("Result of async call: " +
result);
} else {
alert("Exception during async call: " +
exc);
}
};
rpc.callAsync(handler, "greetings");
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/First-steps-with-qooxdoo-trying-to-get-a-simple-web-service-call-to-a-jayrock-json-rpc-web-service-wg-tp6378211p6382240.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel