Il codice che richiama la funzione del Web Service è questo:
TextView test = (TextView)FindViewById(Resource.Id.textView1);
WebService1 myservice = new WebService1();
string result = myservice.Func();
test.Text = result;
---------------------
L'errore viene dato in Reference.cs sulla riga "object[] results = this.Invoke("Func", new object[0])";
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("
http://tempuri.org/Fun", RequestNamespace="
http://tempuri.org", ResponseNamespace="
http://tempuri.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string Func() {
object[] results = this.Invoke("Func", new object[0]); <---
return ((string)(results[0]));
}