I am consuming a third party webservice in C#.net and I have generated a reference to it using the wsdl provided. Now, the third party has different environments and the namespaces in each are depending on the environment eg:
prod https://prod.company.net/api/B2b/
staging: https://stage.company.net/api/B2b/
dev : https://dev.company.net/api/B2b/
The reference that I had generated was based on the wsdl in staging and now I need to modify my Reference.cs to the production namespace. Is there a way to avoid this modification to Reference.cs everytime I deploy to either production or staging/dev.
TL;DR Different namespaces in each environment are giving me nightmares.