I am working a legacy web service app which we has now changed, so that when existing customers make calls like http://ipaddress/SomeMethod1 this no longer exists and the call should be re-routed/redirected to http://ipaddress/Services/SomeMethod1 (note that there are lots of call like this (ie. someMethod2, someMethod3 etc)).
We cannot except the clients to change their applications and in addition some clients are just making simple Get/Post requests whilst others are using SOAP/WSDL generated end points.
I have seen some replies about using httphandlers, httpmodules, bindings etc but I am not sure what is the best way to address this problem with web services without breaking client code.
TIA
JD
Ps. We are using IIS/Asp.net/ASMX with C#
You can use IIS Url rewrite for that. This guarantees that your client dont need to change the url.
More Informations:
URL Rewrite for web service in sub folders in IIS
Regular Expression Info – Lookahead