You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve handling of out-of-order values in a sequence #499
This is fine because technically this is not valid XML according to the WSDL schema. However, when i pass in strict=False to the client i get all of the out-of-order elements dumped into a _raw_elements list on the object. https://gist.github.com/nmaludy/db792168e466e7626ea102569aead04d
Thoughts
When passing strict=False would it be possible to handle out-of-order values in the sequence and assign them to the correct keys in the dict instead of dumping them to _raw_elements?
If this is an AXIS soap server then this seems be a duplicate of #493
Can you confirm that? (It seems only the axis servers are doing this completely wrong)
FYI; I opened up issue #596 before recognizing that it's a duplicate of this and #493. This is biting me really hard with my AXIS server. Feel free to take a look at my ticket for another example of how sorted children tags are causing breakage.
@mvantellingen If you can point me in the right direction i really wouldn't mind fixing it. I tried going through the code, but it it's my first time looking at it and i got a little lost in all of the lxml details.
You should now be able to use the xsd_ignore_sequence_order flag in the client's settings to parse responses that contain out of order items in a sequence.
@nmaludy are you sure that your IPAM server is not using Apache Axis library under the hood? I've run into this using some other solution and the xsd_ignore_sequence_order flag works perfectly for me.
You should now be able to use the xsd_ignore_sequence_order flag in the client's settings to parse responses that contain out of order items in a sequence.
This worked perfectly for my issue with the _raw_elements issue.
Activity
mvantellingen commentedon Jul 23, 2017
If this is an AXIS soap server then this seems be a duplicate of #493
Can you confirm that? (It seems only the axis servers are doing this completely wrong)
nmaludy commentedon Jul 24, 2017
@mvantellingen I don't believe so, this is a Men&Mice IPAM server running on Windows IIS.
mvantellingen commentedon Aug 12, 2017
Okay. I agree that this should be done better. I'll look into it
Jitsusama commentedon Oct 26, 2017
FYI; I opened up issue #596 before recognizing that it's a duplicate of this and #493. This is biting me really hard with my AXIS server. Feel free to take a look at my ticket for another example of how sorted children tags are causing breakage.
nmaludy commentedon Jan 26, 2018
@mvantellingen If you can point me in the right direction i really wouldn't mind fixing it. I tried going through the code, but it it's my first time looking at it and i got a little lost in all of the
lxmldetails.nmaludy commentedon Apr 16, 2018
@mvantellingen I'm still interested in helping out here, if you can help point me in the right direction!
dankrause commentedon Dec 7, 2018
You should now be able to use the
xsd_ignore_sequence_orderflag in the client's settings to parse responses that contain out of order items in a sequence.saper commentedon Oct 5, 2021
@nmaludy are you sure that your IPAM server is not using Apache Axis library under the hood? I've run into this using some other solution and the
xsd_ignore_sequence_orderflag works perfectly for me.srichardson-sc commentedon Nov 2, 2021
This worked perfectly for my issue with the _raw_elements issue.