[MonoTouch] SOAP web services and monotouch
Roland Mai
rmai at bloommg.com
Wed Dec 7 10:03:07 EST 2011
Hey,
This is the second time I am raising this issue. I am using an asmx web service but switching between wifi and 3g is absolutely impossible.
I am using mainly managed threads and make sure to use:
using (var ns = new NSAutoReleasePool())
{
using(var svc = ServiceFactory.NewService())
{
// sync calls
}
}
After switching from Wifi to 3G and vice versa, no calls complete. The first time I get a network failure, the second time a connection timeout.
I've been reading around and it is seems others have the same problem. If I let the device sleep for about 10 minutes, it the network starts working fine.
I am using Miguel's Reachability class to check before making web service calls. I have tried using the StartWWAN method and as many say it doesn't work.
Then, I cam accross a post at: http://escoz.com/nsurlconnection-monotouch-helper-class/ which says that NSUrlConnection is much more reliable.
I really don't want to rewrite the service to be RESTful and start using NSUrlConnection.
This is a huge problem, are there any solutions, I'm exhausted searching on google on this matter.
Thanks
Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111207/f787bfe2/attachment.html
More information about the MonoTouch
mailing list