Greetings,
I'm calling a web service whose return value is a complex type, and I'm
trying to recover the "original" XML from the SOAP response rather than
the python object (so that I can store that XML in my database for
further analysis later). I thumbed through the archives, and found
these:
https://www.redhat.com/archives/fedora-suds-list/2009-November/msg00021.html,
https://www.redhat.com/archives/fedora-suds-list/2009-September/msg00009....,
https://www.redhat.com/archives/fedora-suds-list/2009-August/msg00022.html,
https://www.redhat.com/archives/fedora-suds-list/2009-August/msg00022.html
but no real solution.
I can recover something close by calling last_received method of the
client, or equivalently by setting the retxml option of the client, but
I'm having an awful time fixing up all of the namespaces and getting rid
of the elements with xsi:nil="true" attributes.
Is there a (simple?) solution to this issue? I can provide WSDL and an
actual SOAP response if that would help, but I think that this is a
generic issue (and I'd certainly like to solve it that way).
It would seem that if suds can parse WSDL and SOAP messages, then there
should be enough infrastructure to recover the XML from the server. (In
fact, it seems that suds almost has to recover that XML in order to
build the python object that it does.) Or maybe it's just easy for me
to say that because I'm relatively new at SOAP. ;-)
Thanks,
Dan