Hot!FortiAnalyzer WSDL Problem in C#

Author
kaansengul
New Member
  • Total Posts : 1
  • Scores: 0
  • Reward points: 0
  • Joined: 2019/09/19 08:24:25
  • Status: offline
2019/09/19 08:53:20 (permalink)
0

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());

 
 
#1
Jump to:
© 2019 APG vNext Commercial Version 5.5