Skip to main content
LIDONG
New Member
November 27, 2018
Question

What should be the FortiAnalayzer API WSDL URL?

  • November 27, 2018
  • 10 replies
  • 13205 views

Hi,

 

I meet an issue when connect with FortiAnalayzer API (using Python). For example:

- client = zeep.Client(wsdl=wsdl,transport=Transport(session=session))     Or

- response = requests.post(wsdl,data=body,headers=headers,proxies=proxy)

 

1. I have downloaded the legacy WSDL file by following the "FortiAnalyzer - XML API Reference v5.6.0". At the end of WSDL file, it shows that the URL is http://localhost:8080/FortiAnalyzerWSxml, which is different from other normal public API WSDL url.

 

<wsdl:service name="FortiAnalyzerWSxml"> <wsdl:port name="FortiAnalyzerWSxml" binding="tns:FortiAnalyzerWSxml"> <soap:address location="http://localhost:8080/FortiAnalyzerWSxml"/> </wsdl:port> </wsdl:service>

 

2. In my case, the FortiAnalyzer is accessed via an internal IP address (e.g., assume 10.11.12.13). I also tried to set WSDL URL as http://10.11.12.13:8080/FortiAnalyzerWSxml. But still does not work

 

How should I set the WSDL URL?

 

Thanks.

    10 replies

    hzhao_FTNT
    Staff
    Staff
    November 27, 2018

    Hi there,

     

    The URL is correct, but please make sure:

    1. you have enable "Web Service" on interface.

    2. use latest version of soap UI

     

    Regards,

    hz

    LIDONG
    LIDONGAuthor
    New Member
    November 28, 2018

    Hi Zhao,

     

    http://10.11.12.13:8080/FortiAnalyzerWSxml cannot be opened via browser. Is this suppose to be?

    I tried soap UI, such as getFazConfig() function. it returns me get config successfully. So it means it work, right?

    hzhao_FTNT
    Staff
    Staff
    November 28, 2018

    Yes, web service works with soap UI, not browser.

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.