private void Connect() { KNLTBService.ServerNameClient = "http://apps4us-knltb.nl//webserviceKNLTB.asmx"; remoteAddress = new Service.KNLTBEndpointAddress(KNLTBService.ServerNameClient); client = new KNLTBSoapClient(binding, remoteAddress); }
public void Dispose() { if (client != null) { client.InnerChannel.Dispose(); client = null; } }