Last active
August 23, 2019 13:29
-
-
Save amka/4386124 to your computer and use it in GitHub Desktop.
MTS SOAP request logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'amka' | |
from flask import ( | |
Flask, | |
request, | |
Response | |
) | |
app = Flask(__name__) | |
@app.route("/mts/soap") | |
def handle_soap(): | |
print 'METHOD: {0}'.format(request.method) | |
print 'HEADERS:' | |
for k, v in request.headers: | |
print '{0:20} {1}'.format(k, v) | |
return Response('{0}'.format(request)) | |
if __name__ == '__main__': | |
app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment