private void SetCorrectWebServiceUrlForCompany(CorrigoService service, string companyName) { var response = service.GetCompanyWsdkUrl(companyName, Protocols.HTTP) as GetCompanyWsdkUrlResult; if (response == null || response.ErrorInfo != null) { throw new Exception(response?.ErrorInfo.Description ?? "No response at all!"); } //without cookies - log in information won't be stored on a client // each command will be recognized as from unauthorized source service.CookieContainer = new CookieContainer(); service.Url = response.Url; }