I'm creating a simple WCF service (MailService), and have added a service reference to a client project. The object browser in the client project is successfully showing the MailService metadata, including an object called MailServiceClient that has 4 overloads for its constructor.
I want to use the single string parameter constructor, to nominate the endpoint name, for this client object:
MailServiceClient client =
new MailServiceClient("BasicHttpBinding_IMailService");
Problem is: VS2008 only sees the parameterless constructor, and that's stopping me going any further. It also (therefore?) can't see my only method, SendEmails(), in that client object as well.
Without showing every single line of code for the service, can anyone recognise what's I'm doing wrong here?