login about faq

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!

asked Oct 05 at 05:50

geko's gravatar image

geko
1


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.

link

answered Oct 05 at 09:52

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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?

link

answered Oct 05 at 10:28

geko's gravatar image

geko
1

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

link

answered Oct 05 at 11:02

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×32

Asked: Oct 05 at 05:50

Seen: 196 times

Last updated: Oct 05 at 11:02

powered by OSQA