Open madushanTHAMB opened 2 years ago
Hello guys !
I have a problem using functions with arguments on library. When i'm putting arguments on function, it doesn't work, i don't really know if i'm doing right or not but if somebody can help me it will be great !
session = Session() session.verify = False wsdl = './VirtualServer.wsdl' client = zeep.Client(wsdl=wsdl, transport=Transport(session=session)) vsNames = client.service.getVirtualServerNames() name_vs = vsNames[0] string_array_type = client.get_type('ns0:StringArray') string_array = string_array_type(name_vs) client.service.getPort(string_array)
session = Session()
session.verify = False
wsdl = './VirtualServer.wsdl'
client = zeep.Client(wsdl=wsdl, transport=Transport(session=session))
vsNames = client.service.getVirtualServerNames()
name_vs = vsNames[0]
string_array_type = client.get_type('ns0:StringArray')
string_array = string_array_type(name_vs)
client.service.getPort(string_array)
Here are the signatures of the functions : getPort(names: ns0:StringArray) -> values: ns0:unsignedIntArray
getPort(names: ns0:StringArray) -> values: ns0:unsignedIntArray
And here the error code i got :
zeep.exceptions.Fault: Not an ARRAY reference at /opt/zeus/zxtmadmin/lib/perl/Zeus/ZXTM/SOAPBase.pm line 652
I'm blocked like one week on that, i don't really know what to do, i made a lot of combinations for that problem but i didn't get it.
Thanks for you help !
Hello guys !
I have a problem using functions with arguments on library. When i'm putting arguments on function, it doesn't work, i don't really know if i'm doing right or not but if somebody can help me it will be great !
session = Session()
session.verify = False
wsdl = './VirtualServer.wsdl'
client = zeep.Client(wsdl=wsdl, transport=Transport(session=session))
vsNames = client.service.getVirtualServerNames()
name_vs = vsNames[0]
string_array_type = client.get_type('ns0:StringArray')
string_array = string_array_type(name_vs)
client.service.getPort(string_array)
Here are the signatures of the functions :
getPort(names: ns0:StringArray) -> values: ns0:unsignedIntArray
And here the error code i got :
zeep.exceptions.Fault: Not an ARRAY reference at /opt/zeus/zxtmadmin/lib/perl/Zeus/ZXTM/SOAPBase.pm line 652
I'm blocked like one week on that, i don't really know what to do, i made a lot of combinations for that problem but i didn't get it.
Thanks for you help !