Hi All!
I have a simple script that gets the configuration of an element and immediately posts it back using python with the help of zeep XML processing module. It works fine for multiple elements, but one, where there is an exception "zeep.exceptions.Fault: Invalid port configuration: expected nothing but received Base."
What could be the reason for it?
The script:
from zeep import Client
from zeep import xsd
clientV1 = Client(wsdl='http://10.60.125.126/API/V1/soap.asmx?wsdl')
connectionString = clientV1.service.ConnectApp('127.0.0.1', user, password, 'Script')
el = clientV1.service.GetElementByName(connectionString, 'Dialog Config')
config = clientV1.service.GetElementConfiguration(connectionString, el.DataMinerID, el.ID)
clientV1.service.EditElement(connectionString, el.DataMinerID, el.ID, xsd.SkipValue, config)
Configuration of the element (as zeep interprets it) :
Can you remove the "DMAElementBasePortInfo" tag entirely? It looks like this element doesn't need any port configuration. "DMAElementBasePortInfo" is an abstract base class, when using it a more specific port type should be specified (see here for an example: https://docs.dataminer.services/develop/webservices/WS_v1/WS_About_v1/WS_v1_examples.html#createelement-request ) – but for this element it looks like you don't have to specify any port configuration.