tags:

views:

10

answers:

1

I have created a class that implements IDispatchMessageInspector and in the AfterReceiveRequest method I can get the action in this form: "http://example.com/contract_name/operation_name"

Is there a good way that I can get figure out what method that is in my contract interface? Can I do it using the same code that WCF uses to find what method to call?

+1  A: 

You can't get that info that late in the game; you have to grab it from the OperationDescription objects when you're applying your custom behavior to insert your IDispatchMessageInspector implementation and put it somewhere you inspector can get at.

I have some information on how to correlate SOAP action headers and operations here.

Some actual sample code on how to do this here.

tomasr