06-20-2012 07:03 AM
We use AJAX POST requests. Everything works fine if we do not use MDS. If we do use MDS all our AJAX POST requests looks like being cancelled by MDS. If I change POST to GET everything works fine.
This is actual only for 6.0 and 7.0 devices (tried several different models including 9810, 9930, 9800)
On 5.0 devices all AJAX POST requests work fine.
Could anyone please shed a bit of light on this issue?
Thanks a lot for any idea.
06-25-2012 04:12 PM
Can you provide an example request? What is the actual response/response code that you get?
06-26-2012 03:58 AM
Actually we tried many different variants of code including calls using jQuery.Ajax() and XmlHttpRequest. We played with different headers, urls etc. But no success.
Also we found that AJAX POST request is cancelled by the phone itself (not by MDS) but only when phone is configured to work through MDS. When we turn MDS off behaviour doesn't change. AJAX POST request becomes cancelled immediately. If in this case (when MDS is off) we replace POST with GET then when we send request it hangs for a minute or so and then message appears - "there is no connection" or something like this.
One of the code snippet that doesn't work is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona
We check the same on a live environment with the real BES and result is the same.
06-28-2012 03:24 PM
Is that the full URL? Is there anyway for me to test this here using a live device on my own BES?
06-29-2012 04:04 AM - edited 06-29-2012 10:12 AM
Actually we experience the same issue making requests to any url. Both same domain or cross domain requests fail.
06-29-2012 06:13 PM
I spent a bunch of time trying different things today, but I can't seem to reach that IP at all no matter whether I use a BES or even a device with no BES. Have you tried this anywhere else? Shouldn't the code sample work in a Browser too?
07-03-2012 06:06 AM
I'm extremely sorry. There was power cut off this weekend in our office.
I put this html file to the server so you can just open it using url http://172.28.28.102/bpmmobile/test.html in your browser on device.
Press "Perform POST" button. If AJAX POST succeeds you will see "+" alert; "-" otherwise.
07-03-2012 01:26 PM
Sorry, that's an internal IP - I can't reach that page.
I tried again with the other IP - I can reach it but not the 8082 port. All requests I make are failing to connect at all, regardless of the device.
07-04-2012 04:36 AM
07-04-2012 04:07 PM
Okay, now I've been able to test it. It looks like it's not going to work over MDS - is that a requirement for your project?
Setting the config to not use MDS would resolve this, ie:
<!-- <id>MDS</id> -->