Derrell, thank you. My request works now.
I'm still trying to get rpc console test working...seems to be that I
have the same problem described in my first message if I don't use
cross-domain requests.
Connor
Am 21.05.2012 17:20, schrieb Derrell Lipman:
> On Mon, May 21, 2012 at 11:12 AM, Connor <[email protected]
> <mailto:[email protected]>> wrote:
>
> 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?
>
>
> That error is indicating that you're loading your app from someplace
> other than http://localhost:8080 (probably file://...) but then
> issuing your rpc call to localhost:8080. That's a cross-domain request
> which won't work. There is no available transport for a synchronous,
> cross-domain request.
>
> and on the server:
>
> Server initialized.
> ### Error ### Services require JSON-RPC
>
>
> This indicates that something is in fact getting to the server
> (although I'm not sure how... possibly requesting CORS). What it's
> getting is neither a POST request with a valid JSON-RPC content, nor a
> GET request with the proper "Script Transport" fields.
>
> In any case, I suspect that the problem is just that you're trying to
> load your app via file:// but issue an rpc to http://localhost:8080,
> and that won't work. Load your app via http://localhost:8080 as well,
> and you'll have better luck.
>
> Cheers,
>
> Derrell
>
>
>
> ------------------------------------------------------------------------------
> 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
------------------------------------------------------------------------------
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