python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

Passing CDATA to Zeep XML request

Open alanzablocki opened this issue 6 years ago • 4 comments

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.

alanzablocki avatar Apr 25 '19 15:04 alanzablocki

Hi everyone,

Any update on this? Experiencing the same problem

manuthu avatar Feb 23 '21 00:02 manuthu

Hello!

Same problem here with a CDATA XML problem with Python 3.9.

No update? Can someone help, please?

sergiogn avatar Mar 15 '21 19:03 sergiogn

Hi Everyone,

Facing the same problem. Any updates on this?

raksha-19 avatar Apr 24 '21 17:04 raksha-19

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

cdavid14 avatar Jan 24 '24 18:01 cdavid14