Hello!
I want to post to WSDL service that uses TLS1.2 from a windows XP machine. Since I can only have .NET 4, is there a way (and an example will be great) that i can do that with your component?
Thanks!
Yes, Chilkat supports TLS 1.2 in all of it's builds, even for very old environments such as Visual C++ 6.0.
An example is possible if the example is for a WSDL service that is something that would benefit others. More information would be needed for an example.
Thank you for your response!
This is exactly what i want to rewrite with chilkat! It works everywhere except with TLS1.2 in windows XP:
string xmlRequest = "...envelope..."
System.Net.ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
string url = "https://www3.gsis.gr/webtax2/wsgsis/RgWsPublic/RgWsPublicPort?WSDL";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "POST";
req.ContentType = "text/xml;charset=UTF-8";
byte[] reqBytes = new System.Text.UTF8Encoding().GetBytes(xmlRequest);
req.ContentLength = reqBytes.Length;
try {
using (System.IO.Stream reqStream = req.GetRequestStream()) {
reqStream.Write(reqBytes, 0, reqBytes.Length);
reqStream.Flush();
reqStream.Close();
}
} catch (Exception ex) {
actionLogger.AddError(ex.Message, null);
actionLogger.Validate();
}
string xmlResponse = null;
using (HttpWebResponse resp = (HttpWebResponse)req.GetResponse()) {
try {
using (System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream())) {
xmlResponse = sr.ReadToEnd();
sr.Close();
}
} catch (Exception ex) {
actionLogger.AddError(ex.Message, null);
actionLogger.Validate();
} finally {
resp.Close();
}
}
Is there an example doing something like this?
Here's the equivalent code using Chilkat:
Android: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Classic ASP: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
C: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
C++: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
C#: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
C# UWP/WinRT: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
DataFlex: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Delphi ActiveX: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Delphi DLL: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
.NET Core C#: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Excel: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Visual FoxPro: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Java: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Lianja: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
MFC: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Mono C#: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Node.js: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Objective-C: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Perl: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
PHP ActiveX: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
PHP Extension: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
PowerBuilder: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
PowerShell: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
PureBasic: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Python: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Ruby: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
SQL Server: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Swift: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Tcl: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Unicode C: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Unicode C++: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Visual Basic 6.0: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
VB.NET: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
VB.NET UWP/WinRT: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
VBScript: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
Xojo Plugin: Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest