I'm using Zeep pip package to parse the National Rail SOAP API, and some fields (like the operator name/code) are showing up as None in the parsed response. The raw XML response clearly contains these values, so the data is there. I saw some debug logs about UnresolvedCustomType , but Zeep eventually resolves those types when accessed manually via client.wsdl.types.get_type() .Has anyone else encountered a similar issue where Zeep silently drops or nulls out fields that do exist in the raw XML? Zeep Version: 4.3.1
--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/openraildata-talk/170ac3be-2881-4253-a970-2ec48e8a2e7dn%40googlegroups.com.
Workaround: I used the Zeep HistoryPlugin in order to receive the raw XML from the request. Then i manually parsed the type, using lxml package, into my Zeep reponse. This works pretty good if you only need one or two additional types.
Thank you for your help.
Case closed 😉To view this discussion, visit https://groups.google.com/d/msgid/openraildata-talk/a3ac5b18-314e-4d22-9b30-5b43d393157dn%40googlegroups.com.