Merge pull request #355 from reingart/master

debugger and soap contrib update and fixes
This commit is contained in:
mdipierro
2014-01-19 21:41:25 -08:00
12 changed files with 1557 additions and 945 deletions
+7 -1
View File
@@ -4830,9 +4830,15 @@ class Service(object):
for method, (function, returns, args, doc) in procedures.iteritems():
dispatcher.register_function(method, function, returns, args, doc)
if request.env.request_method == 'POST':
fault = {}
# Process normal Soap Operation
response.headers['Content-Type'] = 'text/xml'
return dispatcher.dispatch(request.body.read())
xml = dispatcher.dispatch(request.body.read(), fault=fault)
if fault:
# May want to consider populating a ticket here...
response.status = 500
# return the soap response
return xml
elif 'WSDL' in request.vars:
# Return Web Service Description
response.headers['Content-Type'] = 'text/xml'