Hi all
Is it possible to make MicroStation V8i and CE communicate with a web server that is running TLS 1.2 for it's security protocols ?
I've made it work in our .NET applications by adding this line of code in CE:
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
and these lines of code in V8i:
public const SslProtocols _Tls12 = (SslProtocols)0x00000C00; public const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12; ServicePointManager.SecurityProtocol = Tls12;My problem is that I can't figure out how to make it work using MDL/CPP - mdlXMLDom_create and mdlXMLDom_loadThanks for any tips.Evan
public const SslProtocols _Tls12 = (SslProtocols)0x00000C00; public const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12; ServicePointManager.SecurityProtocol = Tls12;
Hi Evan,
EvanH said:Is it possible to make MicroStation V8i and CE communicate with a web server
I think the question is not about MicroStation, because not MicroStation itself, but your code is communication with (some) web server.
Is it correct assumption?
EvanH said:I've made it work in our .NET applications by adding this line of code in CE:
You should provide more information about your communication and what do you want to achieve.
Because ServicePoint class is used, so I assume you need to connect to web server using HTTP protocol?
EvanH said:My problem is that I can't figure out how to make it work using MDL/CPP - mdlXMLDom_create and mdlXMLDom_load
mdlXMLDom_ functions are not related to HTTP communication in any way. You have to connect to the web server, send a request and receive the answer. I know many clients save received data to file and load it as a standard file.
I guess you should check Boost library, I assume http / ssl / tls communication is supported.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point