Hi team,
We tried to connect a https WSDL we are getting the error
The ServicePointManager does not support proxies with the https scheme.
Please help to resove the issue.
string post_data = "<xml>";
string uri1 = "https://webservice.aspsms.com/aspsmsx2.asmx/VersionInfo";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri1);
request.Method = "POST";
request.KeepAlive = false;
//request.ProtocolVersion = HttpVersion.Version10;
request.Credentials = System.Net.CredentialCache.DefaultCredentials;
byte[] postBytes = Encoding.ASCII.GetBytes(post_data);
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postBytes.Length;
Stream requestStream = request.GetRequestStream();
requestStream.Write(postBytes, 0, postBytes.Length);
requestStream.Close();
// get response and send to console
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine(new StreamReader(response.GetResponseStream()).ReadToEnd());
Console.WriteLine(response.StatusCode);