Solved

How to Invoke the class from Webservice to C#

Posted on 2011-03-02
2
399 Views
Last Modified: 2012-05-11
        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 !
0
Comment
Question by:Sha1395
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 250 total points
ID: 35026501
0
 
LVL 17

Assisted Solution

by:Jesse Houwing
Jesse Houwing earned 250 total points
ID: 35027628
After creating the AWService.AEEmployeeExport class, you should be able to call:

Export.ExportEmployees(your parameters)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RegEx with optional part 4 55
Input parameteres to DragOver 2 37
Need help with a query 14 38
c#, case, if 4 19
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question