C# 在Visual Studio 10下的mono android中使用web服务
我已经创建了一个非常简单的web服务,并在我的项目中引用了它,当我定义它时,它会被检查出来C# 在Visual Studio 10下的mono android中使用web服务,c#,android,web-services,mono,C#,Android,Web Services,Mono,我已经创建了一个非常简单的web服务,并在我的项目中引用了它,当我定义它时,它会被检查出来 wstest.Service1 ws; ws=newwstest.Service1(); 字符串xx=ws.HelloWorld() 但是当它运行时,它会得到一个错误(未处理的异常/System.Net.WebExceptions) 这里 它似乎对调用一无所知。。。我被卡住了,任何帮助都将不胜感激,谢谢 埃塔。。ait在普通的非安卓c#web上运行良好 public string HelloWorld(
wstest.Service1 ws;
ws=newwstest.Service1();
字符串xx=ws.HelloWorld()
但是当它运行时,它会得到一个错误(未处理的异常/System.Net.WebExceptions)
这里
它似乎对调用一无所知。。。我被卡住了,任何帮助都将不胜感激,谢谢 埃塔。。ait在普通的非安卓c#web上运行良好
public string HelloWorld() {
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
}