Our Objective is to consume the WCF Service Created in .NET 4.5.
We are trying to Consume the Same WCF Service in Visual COBOL.
As per my initial understanding, To achieve this in Visual COBOL, We have couple of questions:
1. Can we consume the WCF Service(.NET 4.5) in NATIVE project created in Visual COBOL?
If Yes ? Then how to do that? Some Example of thread will help us.
2. Can we consume the WCF service(.NET 4.5) in Managed project created in Visual COBOL?.
If Yes ? Then How? Some Example or thread will help us.
The .NET Framework HttpWebRequest class supports TLS and lets the client set the client certificate. Use WebRequest with an "https" URL to create the HttpWebRequest object, cast it to the HttpWebRequest type, and set its ClientCertificates property to an X509CertificateCollection containing your certificate. You should be able to find examples online.
It's also possible to do this with the newer HttpClient and HttpRequestMessage classes, but it requires creating an HttpRequestHandler and (in managed COBOL) using the ContinueWith method and a delegate, as shown in Ted John's method in the other topic. I don't recommend this approach.
Good morning, let me try to explain, today I already sign the XML with digital certificate using a .NET class and I have a program in NetExpress 3.1 that does the transmission, however, when I will transmit the XML to connect in the Web Service I need the same digital certificate that I signed, when I sign I already choose the digital certificate that I want to use, but I can not do it for transmission. In short, I need a .NET class that makes that connection using the same certificate, pass it on and get the answer. Thank you.