python-zeep
python-zeep copied to clipboard
Passing CDATA to Zeep XML request
Thank you for looking at this support request. I have looked at many Github open issues and the docs and cannot find any mention of whether passing CDATA flag to Zeep XML request JSON is possible.
Using Zeep version : '3.2.0' and Python 2.7
Example Script Example WSDL Schema ZEEP XML REQUEST and xml response
Essentially I am looking for the correct way to pass a CDATA statement to the Zeep XML request JSON, or if possible, to pass an exact XML request that works in SOAP UI
find_criteria_filled = { 'userName': user, 'password': pwd, 'sessionId': None, 'criteria': { 'SOMENAME': { '<![CDATA[some_column_name3]]>': '2019-04-22 00:00:00.000', 'some_column_name1': 'CS' } }, 'maxRows': '1' }
Currently some_column_name3 is ignored and the request only sends some_column_name1
this works in SOAP UI 5.4.0, where some_column_name3 is a timestamp in SQL server db:
"<![CDATA[<some_column_name3>>2019-04-22 00:00:00.000</some_column_name3>]]>"
Thank you for your time.
Hi everyone,
Any update on this? Experiencing the same problem
Hello!
Same problem here with a CDATA XML problem with Python 3.9.
No update? Can someone help, please?
Hi Everyone,
Facing the same problem. Any updates on this?
Hello Everyone,
I've solved this using a custom transport, and appending content with CDATA tags
https://stackoverflow.com/questions/48655638/python-zeep-send-un-escaped-xml-as-content