简体   繁体   English

使用Python / SUDS设置IncludeExceptionDetailInFaults

[英]Set IncludeExceptionDetailInFaults with Python/SUDS

How can I set IncludeExceptionDetailInFaults with Python/SUDS? 如何使用Python / SUDS设置IncludeExceptionDetailInFaults For one of my requests, I am getting this error message: 对于我的要求之一,我收到此错误消息:

  File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 542, in __call__
    return client.invoke(args, kwargs)
  File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 602, in invoke
    result = self.send(soapenv)
  File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 649, in send
    result = self.failed(binding, e)
  File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 702, in failed
    r, p = binding.get_fault(reply)
  File "/usr/local/lib/python2.7/dist-packages/suds/bindings/binding.py", line 265, in get_fault
    raise WebFault(p, faultroot)
WebFault: Server raised fault: 'The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.'

There is no obvious error in the request, so I would like to obtain additional information, but can't find a way using SUDS API. 请求中没有明显的错误,因此我想获取其他信息,但找不到使用SUDS API的方法。 Is there any way? 有什么办法吗?

As I understand it now, the answer is no. 据我了解,答案是否定的。 The IncludeExceptionDetailInFaults setting seems to be only accessible on the server, there doesn't seem to be a way to change it from the client side. IncludeExceptionDetailInFaults设置似乎只能在服务器上访问,似乎没有从客户端更改它的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM