Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
1.75/5 (3 votes)
See more:
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

C#
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();
        }
    }
}
Posted
Updated 1-Mar-11 23:34pm
v4

1 solution

you are trying to create an instance for class which doesnt have the constructor for it.

Ensure the class has default constructor.
 
Share this answer
 
Comments
shan1395 2-Mar-11 4:38am    
Thanks for your response Sridhar,why am not able call some method from webservice ? esp : this one
MLAEmployeeExport,because i have to pass string to this method and get the return value.

Please give me your thoughts,Thanks in Advance

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900