Besides the RPC console I've tried to call the rpc server directly with :
var rpc = new qx.io.remote.Rpc(
"http://localhost:8080/rpc/qooxdoo/services/index.php",
"qooxdoo.test"
);
try {
var result = rpc.callSync("echo", "Test");
alert("Result of sync call: " + result);
} catch (exc) {
alert("Exception during sync call: " + exc);
}
and get an error on the client:
Exception during sync call: Error: Transport error 0: Unknown status
code. Possibly due to application URL using 'file:' protocol?
and on the server:
Server initialized.
### Error ### Services require JSON-RPC
Maybe this is related.....
Connor.
Am 21.05.2012 16:32, schrieb Connor:
> Hi,
> After setting up a PHP RPC-Server I tried to run the qooxdoo test with
> the RPC-Console. The first test
> getInteger is executed and results in a log on the RPC Server that does
> not show an error.
>
> Server initialized.
> Service request: qooxdoo.test.getInteger
> Parameters: Array
> (
> )
>
> Server Data:
> Checking service qooxdoo.test ...
> Loading service qooxdoo.test ...
> Loading class file 'class//qooxdoo/test.php'...
> Loaded file 'class//qooxdoo/test.php'
> Starting normal PHP session .
> Instantiating service class 'class_test'.
> Checking accessibility...
> Checking service method 'method_getInteger'.
> Starting Service method class_test.method_getInteger
> Done.
> Computing output took 0.028832912445068 seconds ...
> Sending output to client ...
> Server initialized.
> Service request: qooxdoo.test.getInteger
> Parameters: Array
> (
> )
>
> Also the Response on the RPC Console seems to be ok:
>
> {"id":5,"result":1,"error":null}
>
> But the status in the list never changes from "Request is pending..."
> and no other test is performed.
> Is this a configuration problem ?
>
> Connor
------------------------------------------------------------------------------
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/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel