none
WebHttpBinding : Get actual return type of method in ProvideFault method RRS feed

  • Question

  • Hi,

    I have following method in service contract- 

    Response DoSomething(Request request);

    The binding is webHttpBinding.

    I want to get the return type (i.e. "Response") of the service operation called in ProvideFault Method of the IErrorHandler interface. I am able to achieve this in other bindings except webHttpBinding using OperationContext.Current but does not know how to get it with WebOperationContext.

    Please help

    Thursday, September 11, 2014 3:16 AM

Answers

  • Hi,

    You could refer to the following links for more information:

    http://blogs.msdn.com/b/carlosfigueira/archive/2011/06/07/wcf-extensibility-ierrorhandler.aspx

    http://tarunkpal.blogspot.com/2009/09/wcf-error-handling-with-webhttpbinding.html

    Friday, September 12, 2014 5:26 AM