Python-zeep: Debug Mode

Created on 6 Jun 2016  路  6Comments  路  Source: mvantellingen/python-zeep

Is it possible to create a "debug mode"?

I want to be able to see the XML request before it is sent.
It very hard to debug requests without actually seeing it..

componentransport enhancement

All 6 comments

Currently not really. I agree that this might be something I want to add in the future.

You can for now subclass the Transport class and add logging in the post/get calls (https://github.com/mvantellingen/python-zeep/blob/master/src/zeep/transports.py#L36)

You could realize that objective by using a tool like Wireshark or Fiddler.

:+1:
Being able to easily see the actual XML from the response would be nice as well.

You could always use requests' HTTP and urllib3 logging to see the XML:
http://stackoverflow.com/a/16630836/70011

For reference: the HistoryPlugin offers better support for this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

allan-simon picture allan-simon  路  4Comments

ri8on picture ri8on  路  4Comments

vadivelkindhealth picture vadivelkindhealth  路  3Comments

ryan-mccaffrey picture ryan-mccaffrey  路  5Comments

alexfx picture alexfx  路  4Comments