I am creating a simple WCF service (MailService) and have added a service link for a client project. In the object browser, the client project successfully displays MailService metadata, including the MailServiceClient object, which has 4 overloads for its constructor.
I want to use the single-row constructor to assign an endpoint name to this client object:
MailServiceClient client =
new MailServiceClient("BasicHttpBinding_IMailService");
The problem is that VS2008 only sees a constructor without parameters, and this stops me further. It also (therefore?) Cannot see my only method, SendEmails (), in this client object.
Without showing every line of code for the service, can anyone find out what I'm doing wrong here?
source
share