Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
kaansengul
New Contributor

FortiAnalyzer WSDL Problem in C#

Hi All,

I'm trying connect to FortiAnalyzer to get some info. I saw that FortiAnalyzer is providing WSDL and I wrote a simple C# console app in .Net Core. I've added as "Connected Service" with url like this: "https://<fortianalyzer-ip>:8080/" (not ending with /FortiAnalyzerWSxml or /FortiAnalyzerWS)

 

When I run the app I got this error: https://pasteboard.co/Iy9fsDf.png

 

Sample code: 

 

var ws = new FortiAnalyzerApi.FortiAnalyzerWSPortTypeClient();
            ws.ClientCredentials.UserName.UserName = "user";
            ws.ClientCredentials.UserName.Password = "pass";
            ws.ClientCredentials.ServiceCertificate.SslCertificateAuthentication = new System.ServiceModel.Security.X509ServiceCertificateAuthentication()
            {
                CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None,
                RevocationMode = System.Security.Cryptography.X509Certificates.X509RevocationMode.NoCheck
            };

            var result = ws.getSystemStatus(new FortiAnalyzerApi.getSystemStatus());

 

 

0 REPLIES 0
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors