How do I get the XML SOAP request of an WCF Web service request?

后端 未结 7 649
太阳男子
太阳男子 2020-12-07 08:28

I\'m calling this web service within code and I would like to see the XML, but I can\'t find a property that exposes it.

7条回答
  •  误落风尘
    2020-12-07 09:27

    OperationContext.Current.RequestContext.RequestMessage 
    

    this context is accesible server side during processing of request. This doesn`t works for one-way operations

提交回复
热议问题