I have a WCF Service. It has two operation contracts say, MyFunction & MyFunction1. I want when a client invokes MyFunction, then MyFunction1 should get fired and serve the request.
I dont want to write this function call in MyFunction. I want something like changing the SOAP request in between… I mean before hitting the SVC I want to edit the SOAP and change the SOAP Body and make the tag from MyFunction to MyFunction1
How can I do this any Idea?
Assumption: the MyFunction and MyFunction1 takes same parameter(s)
Thanks
What you can try to use is custom IDispatchOperationSelector – implementation of this interface is responsible for selecting method which will be called to serve the request. This should be easier than modifying the message.
If you still want to modify received SOAP you can try to use custom encoder.