Configuration api with python Zeep

I’m trying to read out the configuration by using python and Zeep using the following code:

from requests_ntlm import HttpNtlmAuth

import zeep

from requests import Session

from zeep import Client

from zeep.transports import Transport

import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

session = Session()

session.verify = False

username = ‘xxxx\yyyy’

password = ‘**********’

url = ‘http://x.x.x.x/ManagementServer/ConfigurationApiService.svc?wsdl’ # url for soap service

try:

session.auth = HttpNtlmAuth(username,password)

transport = Transport(session=session)

client = Client(url,transport=transport)

print(client.service.GetItems(‘/’))

except zeep.exceptions.Fault as fault:

print(fault.message)

print(fault.code)

print(fault.actor)

This only returns the following exception: Unknown fault occured

Do anyone have an example how to use the configurationApi with zeep

Unfortunately, there is no examples but please see this doc, there are some coding tips, I hope they might be helpful.

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_configurationapi.html&tree=tree_4.html