WCF 不会跟踪非 soap 回复消息
WCF won't trace non-soap reply messages
有没有办法让 WCF 跟踪执行消息日志跟踪,即使响应消息不是有效的 SOAP 消息?现在它只是抛出一个异常,即服务器没有提供有意义的回复并停止跟踪。
我需要查看回复,因为它包含对我有用的信息。
启用消息记录然后设置属性 logMalformedMessages=true
。
Malformed messages are messages that are rejected by the WCF stack at any stage of processing. Malformed messages are logged as-is: encrypted if they are so, with non-proper XML, and so on. maxSizeOfMessageToLog
defined the size of the message to be logged as CDATA. By default, maxSizeOfMessageToLog
is equal to 256K. For more information about this attribute, see the Other Options section.
有没有办法让 WCF 跟踪执行消息日志跟踪,即使响应消息不是有效的 SOAP 消息?现在它只是抛出一个异常,即服务器没有提供有意义的回复并停止跟踪。
我需要查看回复,因为它包含对我有用的信息。
启用消息记录然后设置属性 logMalformedMessages=true
。
Malformed messages are messages that are rejected by the WCF stack at any stage of processing. Malformed messages are logged as-is: encrypted if they are so, with non-proper XML, and so on.
maxSizeOfMessageToLog
defined the size of the message to be logged as CDATA. By default,maxSizeOfMessageToLog
is equal to 256K. For more information about this attribute, see the Other Options section.