I\'m creating a DLL with a reference to web services (I don\'t have the choice to do so) but I have to add web service references to the project that uses the DLL for it to
right-click Add Service Reference in your client's project for add Methods and Classes
Then To access the service you can then do something like in dll
EndpointIdentity spn = EndpointIdentity.CreateSpnIdentity("host/mikev-ws");
Uri uri = new Uri("http://example.com/test.asmx");
var address = new EndpointAddress(uri, spn);
BasicHttpBinding basic = new BasicHttpBinding();
basic.Name = "bindingName";
var client = new MyService.MyWebServiceSoapClient(basic, address);
client.HelloWorld();