我正在使用xamarin工作室构建我的第一个android应用程序,使用一个web服务,我在文档中找不到任何帮助:单击这里!
我试着看一些视频,我发现的都是关于xamarin.forms的
发布于 2016-05-23 23:13:32
如果您的服务不是.NET服务,则必须将web引用导入为WCF2.0WebServices:


呼叫服务:
Button button = FindViewById<Button> (Resource.Id.myButton);
button.Click += delegate {
SoapApp.www.webservicex.net.GlobalWeather soapservice = new SoapApp.www.webservicex.net.GlobalWeather();
var cities = soapservice.GetCitiesByCountry("peru");
button.Text = cities;
};其结果是:

如果它不起作用,尝试在新项目中构建Visual中的代理,然后他们将类复制到Xamarin Studio项目中,我知道这不是最好的方法,而是一种解决办法。
不要忘记添加System.Web.Services和System.ServiceModel引用。
对不起,Xamarin工作室的西班牙侍从,希望它能帮到您
https://stackoverflow.com/questions/37388916
复制相似问题