Property24ListingService _service = new Property24ListingService(); // code to tell your application that you have no problems with self-signed SSL certificate ServicePointManager.ServerCertificateValidationCallback = delegate(Object obj, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { return(true); }; webRef1.CredentialsHeader header = new webRef1.CredentialsHeader(); header.EMail = email; header.Password = pwd; _service.CredentialsHeaderValue = header; // _service.ClientCertificates.Add(X509Certificate.CreateFromCertFile(cerPath)); X509Certificate cer = new X509Certificate(X509Certificate.CreateFromCertFile(cerPath)); _service.ClientCertificates.Add(cer); MessageBox.Show(_service.EchoAuthenticated("hi")); var agent = _service.FetchAgent(94); MessageBox.Show(agent.ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)