Can i view the raw request made by soap wcf call

微笑、不失礼 提交于 2019-12-08 19:05:49

问题


I am making a SOAP request using WCF to a third party service. The service requires that I sign the request, which I think I am doing but I get the error: Could not create SSL/TLS secure channel So I am wondering if there is a way to see the raw xml that is being sent so I can see where the problem is?


回答1:


You can see the contents of a message by enabling message tracing and using the Service Trace Viewer to view the message logs.

Having said that, the message Could not create SSL/TLS secure channel implies a problem at the transport level, so I doubt that you are going to find much of use in the message trace. It likely means you don't have the right client certificate or none at all; this thread on the ASP.NET forums might help you out with that.




回答2:


OperationContext.Current.RequestContext.RequestMessage.ToString()


来源:https://stackoverflow.com/questions/2292868/can-i-view-the-raw-request-made-by-soap-wcf-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!