public ResponseDataServ(Uri APIUrl) { try { EndpointAddress endpoint = new EndpointAddress(APIUrl.ToString() + WSDL_LOCATION); client = new ResponseDataServiceClient("BasicHttpBinding_IResponseDataService", endpoint); } catch (Exception e) { Console.WriteLine("Invalid URL"); } }
public ResponseSvc() { Client = new ResponseDataServiceClient("BasicHttpBinding_IResponseDataService"); }