#293 ZSI.EvaluateException: Got None for nillable(False)

v2.1
open
nobody
zsi (169)
5
2015-03-23
2010-10-13
Monty Burge
No

Trying to use the soap api to update some data on a network device as part of an application we are looking at building. Everytime I set up the data to forward to the device ZSI returns the following error:

Traceback (most recent call last):
File "ZSI_Test.py", line 36, in <module>
SubnetGroupTest('LatePayerGroup')
File "ZSI_Test.py", line 34, in SubnetGroupTest
uprsp = port.updateSubnetGroup(umsg)
File "/home/Devel/code/SOAP/IPServiceControl_client.py", line 5120, in updateSubnetGroup
self.binding.Send(None, None, request, soapaction="updateSubnetGroup", **kw)
File "build/bdist.linux-i686/egg/ZSI/client.py", line 246, in Send
File "build/bdist.linux-i686/egg/ZSI/writer.py", line 117, in serialize
File "build/bdist.linux-i686/egg/ZSI/TC.py", line 609, in serialize
File "build/bdist.linux-i686/egg/ZSI/TCcompound.py", line 275, in serialize
File "build/bdist.linux-i686/egg/ZSI/TCcompound.py", line 437, in cb
ZSI.EvaluateException: Got None for nillable(False), minOccurs(1) element (http://ipservicecontrol.net/schema/V2.1.0,subnetGroup), <ns1:updateSubnetGroup xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ZSI="http://www.zolera.com/schemas/ZSI/" xmlns:ns1="http://ipservicecontrol.net/schema/V2.1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></ns1:updateSubnetGroup>
[Element trace: /SOAP-ENV:Body].

The tar file contains the wsdl and a small test program I used wsdl2py -b to generate thw IPServiceControl files. The network device is accessible I would appreciate a heads up if you plan to run the program on that device.

Discussion

  • Monty Burge

    Monty Burge - 2010-10-13

    Tar file with wsdl and test program

     
  • Joshua Boverhof

    Joshua Boverhof - 2010-10-13

    This message: "Got None for nillable(False), minOccurs(1) element"

    means based on the schema this element is required to be there be there but it is not:
    (http://ipservicecontrol.net/schema/V2.1.0,subnetGroup)

    Just go find "subnetGroup" and set "minOccurs=0" in the generated "_types" module.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks