SOAP web services and monotouch

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SOAP web services and monotouch

Roland Mai
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

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: SOAP web services and monotouch

Andreas
Hi Roland,

Did you find a solution for that problem?
I’ve just found that: https://bugzilla.xamarin.com/show_bug.cgi?id=10888
Regards,

Andreas

Logbook for iPhone/iPad and Windows http://www.flightmanagement.ch

Helicopter flights http://www.rotair.ch

Reply | Threaded
Open this post in threaded view
|

Re: SOAP web services and monotouch

derekforeman
Andreas,

We (Roland and the company collective) have not found a solution. That is our bug report in bugzilla, currently waiting to get information back from Xamarin.

Derek
Reply | Threaded
Open this post in threaded view
|

Re: SOAP web services and monotouch

kgleason
This post has NOT been accepted by the mailing list yet.
heh. Funny.
--
Kirk Gleason
IT Director
Bloom Marketing Group
1801 S. Liberty Drive
Suite 200
Bloomington, IN  47403
P: (812) 961-2535 x.2101
F: (812) 961-2536

On Apr 1, 2013, at 8:49 AM, "derekforeman [via MonoTouch]" <[hidden email]> wrote:

Andreas,

We (Roland and the company collective) have not found a solution. That is our bug report in bugzilla, currently waiting to get information back from Xamarin.

Derek


If you reply to this email, your message will be added to the discussion below:
http://monotouch.2284126.n4.nabble.com/SOAP-web-services-and-monotouch-tp4169281p4658201.html
This email was sent by derekforeman (via Nabble)
To receive all replies by email, subscribe to this discussion


smime.p7s (6K) Download Attachment