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]));
}
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()
}
}
}
how can i pass the string and am not able to invoke those method.Thanks in Advance !
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.