标题:未定义构造函数,无法调用webservice方法 [英] Title: No Constructor defined,couldn't call the webservice method
本文介绍了标题:未定义构造函数,无法调用webservice方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据您的所有建议,创建了一个代理Web服务,并添加了我的控制台应用程序.
面临两个问题
1)当我尝试调用Webservice方法时,它抛出未定义构造函数"
2)我正在尝试在Web服务(MLAEmployeeExport)中调用方法,但该方法未显示在属性中
这是我的控制台应用程序代码
Hi,
Based on all your suggestion, created a proxy webservice and add in my console application.
Am facing two Problems
1) when i was trying to call a webservice method,its throwing "No Constructor defined"
2) i was trying a call a method in webservice ( MLAEmployeeExport),its not showing in the property
Here is my console application Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Services;
namespace MLAWebservice
{
class Program
{
static void Main(string[] args)
{
Microsoft.SqlServer.ReportingServices2010.ExportEmployeesCompletedEventArgs export = new Microsoft.SqlServer.ReportingServices2010.ExportEmployeesCompletedEventArgs();
Console.ReadLine();
}
}
}
推荐答案
您正试图为没有该类构造函数的类创建一个实例.
确保该类具有默认构造函数.
you are trying to create an instance for class which doesnt have the constructor for it.
Ensure the class has default constructor.
这篇关于标题:未定义构造函数,无法调用webservice方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文