I have a 3rd party web service to call from ASP.NET Web API application. This 3rd party service is not svc or asmx. And all I have been give is 2 WSDLs for TEST and PROD environments.
https://test.xyz.com/XYZEventService?wsdl
https://xyz.com/XYZEventService?wsdl
Now, I plan to add a class library to my Web API application and have the service references for these services generated through svcutil.exe
.
But how do I differentiate between TEST and PROD? Or in an ideal situation would one proxy work for both?
My question is about the best way to configure and use multiple environment 3rd party web services within a single Web API application.