OK, just as an experiment I tried:

 

  var req = new qx.io.remote.Request("http://74.143.64.2:5040/JSONP.aspx";);

  req.setMethod("GET");

  req.setCrossDomain(true);

  req.send();

 

Just trying to see if it will even ping the server.

I never see anything in the server log. No error, no attempt.

Qooxdoo playground returns no error at all, it just never does anything.

 

I tried the same code removing the CrossDomain and still no ping to the
server.

I was looking to see what the request looked like when it got to the server,
but it doesn't appear to try to even talk to the server.

 

I guess it's not really feasible unless you control both ends.

 

 

From: Eric Paul [mailto:[email protected]] 
Sent: Tuesday, July 31, 2012 2:56 PM
To: 'qooxdoo Development'
Subject: Re: [qooxdoo-devel] qooxdoo RPC

 

OK, I'll do some digging on the CrossDomain request stuff.

 

Thanks,

 

-Eric

 

From: Derrell Lipman [mailto:[email protected]] 
Sent: Tuesday, July 31, 2012 2:35 PM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] qooxdoo RPC

 

On Tue, Jul 31, 2012 at 2:29 PM, Eric Paul <[email protected]>
wrote:

Thanks for your prompt reply.

 

I do not need a synchronous call but I do need to crossDomain support.

Whenever I use the callAsync then nothing happens at all. No error-nothing.
That's why I was using "call".

 

A ".net service" is really just a page written in .net to handle the
JSON-RPC requests. The page I listed:

 

http://74.143.64.2:5040/Handler1.ashx

 

is a real page. If you visit it in web browser you can navigate to a test
interface to see how it works.

If I use any other tool to make a JSON-RPC request to that page they all
work. If I use fiddler and send:

 

{"data":"test"}

 

It returns my "success" message and

 

{"id":1,"method":"WriteFile","params":{ "data" : "test"}}

 

Ok. With a cross-domain request, which uses the Script transport, you can't
just return data. Take a look at the documentation, which hopefully makes it
clear, and in particular at the section labeled "Cross-Domain Requests":
http://demo.qooxdoo.org/current/apiviewer/#qx.io.remote 

 

You can also search for JSONP which is the current standard that is very
similar to the qooxdoo implementation in the Script transport.

 

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

Reply via email to