10.
ChannelFactory<IInvoiceService> factory =
new ChannelFactory<IInvoiceService>(
new BasicHttpBinding(),
new EndpointAddress("http://server/invoiceservice"));
...
ChannelFactory<IInvoiceService> factory =
new ChannelFactory<IInvoiceService>("httpEndpoint");
...
15.
public partial class InvoiceServiceClient :
ClientBase<IInvoiceService>, IInvoiceService
{
public InvoiceServiceClient() { }
public InvoiceServiceClient(string endpointName) :
base(endpointName)
{
}
... // you're service contract methods will be here