I would like to apply multiple WS-I filters on NNMi 10.20 SOAP , I Use Zeep Python library :
from requests.auth import HTTPBasicAuth # or HTTPDigestAuth, or OAuth1, etc.
from requests import Session
from zeep import Client
from zeep.transports import Transport
user = 'admin'
password = 'secret'
url = 'http://domaine.fr/NodeBeanService/NodeBean?wsdl'
session = Session()
session.auth = HTTPBasicAuth(user, password)
client = Client(url, transport=Transport(session=session))
factory = client.type_factory('ns3')
constraint = factory.constraint(name="includeCustomAttributes", value=1)
condition = factory.condition(name="id", operator="EQ", value=node_id)
filterr = factory.expression(operator="AND", subFilters=[constraint, condition])
node_infos = client.service.getNodes(filterr)
I get this error
Fault: java.lang.IllegalArgumentException: prefix ns1 is not bound to a namespace
what is the solution please.
thanks in advance.
Thanks for posting,
That is a very intriguing request. I think this is beyond support scope, but maybe you can try to open a support request and see if they can assist you, but please take into account this may be out of their scope. Now i am not a python guy, but as far as I know when you get an error like this, the simplest way is to add the prefix declaration,
Customer Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.