【问题标题】:Using WCF web service from monodroid application从 monodroid 应用程序使用 WCF Web 服务
【发布时间】:2013-03-21 22:59:15
【问题描述】:

我正在尝试从 Android 应用程序测试我的 WCF Web 服务,但出现此错误:

No overload for method 'GetData' takes 1 arguments  

这是代码:

        using client01.TestService;

        EditText = FindViewById<EditText>(Resource.Id.EditText);
        TestService.Service TS = new TestService.Service();
        EditText.Text = TS.GetData(7);

【问题讨论】:

    标签: c# visual-studio-2012 xamarin


    【解决方案1】:

    检查 TS.GetData() 的定义,看看函数有多少参数。

    【讨论】:

    • 得到一个参数:string GetData(int value);你能帮我理解这一行吗:TestService.Service TS = new TestService.Service();什么是测试服务?和 TestService.service?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-05-11
    • 1970-01-01
    • 1970-01-01
    • 2023-03-31
    • 2012-02-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多