Link to home
Start Free TrialLog in
Avatar of Sha1395
Sha1395

asked on

How to Invoke the class from Webservice to C#

        public EmployeeExport[] ExportEmployees(string LoginName, string Password, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] System.Nullable<System.DateTime> LastExport, out string ErrorMessage) {
            object[] results = this.Invoke("ExportEmployees", new object[] {
                        LoginName,
                        Password,
                        LastExport});
            ErrorMessage = ((string)(results[1]));
            return ((DLAEmployeeExport[])(results[0]));
        }

Open in new window



The namespace for my webservice is "AWService {"

The above code in my webservice,i added this webservice in my c# console application,but how can i call this class and pass the string.

my console applicaton code.

namespace AWebservice
{

   public class Program
    {
        public static void Main(string[] args)
        {
            AWService.AEmployeeExport export = new AWService.DLAEmployeeExport()
           

        }
    }
}

Open in new window


how can i pass the string and am not able to invoke those method.Thanks in Advance !
ASKER CERTIFIED SOLUTION
Avatar of alexey_gusev
alexey_gusev
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Jesse Houwing
Jesse Houwing
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial