How to do wcf routing service using xpath?

797 views Asked by At

I have a wcf project that needs to do some routing stuff. One scenario there is, is to do a service versioning. So for example if there is a change or a new service needs to be implemented for a new client on wcf service that is breaking, I will then create a different service endpoint for that to be consumed by the new client. Bu the thing is the old client should still be able to communicate with the older version of the service(That's how service versioning should work right?). To do so, I decided to use the wcf routing service using the XPath method.

Two things I can do with the XPath method, either to check the version on the Data Contract using content filtering or by looking at the header. Now I want to do both just for the sake of bench marking. I understand how XPath will work but I don't know how to implement it.

Any tutorials or examples is greatly appreciated. Found few good examples on the web but they're not giving the full config.

Best regards,

1

There are 1 answers

0
mr.b On