It sounds like Tim is saying that his team switched to a RESTful approach to avoid the overhead of SOAP. On Sep 16, 2011 10:14 AM, "Mittchel Van Vliet" <[email protected]> wrote: > This didn´t really cleared my problem.. but you mean WebServices aren´t > really useable in Monodroid? > > 2011/9/16 Tim Kelly <[email protected]> > >> Do what you want, but I got it working fine just to find out that it runs >> like a dog on Android and eventually dropped using web services because of >> the issues in production on the Droid. Basically, too much overhead, we >> went with a lightweight posting protocol and that (thank goodness) was >> better. Basically, we just post data directly to a webpage and it solved >> the issue. **** >> >> ** ** >> ------------------------------ >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Mittchel Van Vliet >> *Sent:* Friday, September 16, 2011 8:23 AM >> *To:* [email protected] >> *Subject:* [mono-android] [mono-droid] Webservice crash**** >> >> ** ** >> >> Heya,**** >> >> ** ** >> >> I recently started developing in Monodroid and now I wanted to try some >> webservices..**** >> >> ** ** >> >> If I try the tutorial @ mono site it works well, except when I try to host >> my own Webservice in ASP .NET it doesn't.**** >> >> ** ** >> >> The weird thing is, if I access my webservice in .ASP or a Console >> Application I do get the desired output, but do I reference it in mono droid >> it crashes.. >> I made my own Calculator webservice which works in ASP and Console >> application.. the code I use is:**** >> >> ** ** >> >> protected override void OnCreate(Bundle bundle)**** >> >> {**** >> >> base.OnCreate(bundle);**** >> >> ** ** >> >> //SetContentView(Resource.Layout.Main);**** >> >> ** ** >> >> //Button button = FindViewById<Button>(Resource.Id.widget38);* >> *** >> >> //EditText add_1 = >> FindViewById<EditText>(Resource.Id.widget36);**** >> >> //EditText add_2 = >> FindViewById<EditText>(Resource.Id.widget37);**** >> >> textje = new TextView(this);**** >> >> textje.Text = "Working..";**** >> >> ** ** >> >> SetContentView(textje);**** >> >> **** >> >> ThreadPool.QueueUserWorkItem(o => SlowMethod()); **** >> >> ** ** >> >> }**** >> >> ** ** >> >> private void SlowMethod()**** >> >> {**** >> >> Thread.Sleep(5000);**** >> >> int testie;**** >> >> ** ** >> >> Calculator service = new Calculator();**** >> >> testie = service.Add(5, 5);**** >> >> **** >> >> RunOnUiThread(() => textje.Text = Convert.ToString(testie));** >> ** >> >> ** ** >> >> } **** >> >> ** ** >> >> ** ** >> >> ** ** >> >> Hope someone can help me!**** >> ------------------------------ >> >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 10.0.1410 / Virus Database: 1520/3899 - Release Date: 09/15/11*** >> * >> >> _______________________________________________ >> Monodroid mailing list >> [email protected] >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/mailman/listinfo/monodroid >> >>
_______________________________________________ Monodroid mailing list [email protected]
UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
