Skip to content

Instantly share code, notes, and snippets.

@LensHunnel
Created February 20, 2017 11:01
Show Gist options
  • Save LensHunnel/07a42bb09ccb7dcdf11e498caa02cedb to your computer and use it in GitHub Desktop.
Save LensHunnel/07a42bb09ccb7dcdf11e498caa02cedb to your computer and use it in GitHub Desktop.
The sample of code I'm using for a project
from lxml import etree
from zeep import Plugin
class MyLoggingPlugin(Plugin):
def ingress(self, envelope, http_headers, operation):
print(etree.tostring(envelope, pretty_print=True))
return envelope, http_headers
def egress(self, envelope, http_headers, operation, binding_options):
print(etree.tostring(envelope, pretty_print=True))
return envelope, http_headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment