I would like to replicate a given web-service for simulation purposes. The main idea is that the new service implements the same interface as an existing one (which I do not control in any way) but with different actual method implementations. I would, then, like to be able to redirect request to the real address or to the simulated one under certain testing conditions without having to change configurations. Is this possible to accomplish in WCF?
I would like to replicate a given web-service for simulation purposes. The main idea
Share
In terms of actually replicating the service, if the existing service exposes metadata, i.e. WSDL, then you can recreate the service by essentially doing the following:
In terms of toggling between the original and your new service, I suppose one option would be from the client side reference the different service endponts in code (versus config) and that way you could just toggle a switch to hit one service or the other…