title: "Hot-Swapping" Web Service References in Visual Studio
body: <p>I've recently written prototype code that consumes a commercial web service that is hosted on ServerA.</p>
  
  <p>I've added the reference through Visual Studio, written some code that calls a few exposed functions from the service and everything works great.</p>
  
  <p>I'm now trying to change the reference to that web services to another URL, to target another server, ServerB. I BELIEVE the services on these two machines are the same.</p>
  
  <p>However:
  ServerA runs some version of the application which includes the deployed web service.
  ServerB runs a different version of the application which includes the deployed web service.</p>
  
  <p>Both WSDL contents are identical, the namespace addresses between the two are identical (the target namespace URLs are the same[note that the URLs both reference an external address e.g. <a href="http://google.com/services/whatever/]" rel="nofollow noreferrer">http://google.com/services/whatever/]</a>), but my prototype code only works when I reference the web service from ServerA.</p>
  
  <p>I throw a "Fault occurred while processing." exception whenever calling an exposed function on ServerB. From my understanding this is an unhandled exception that is thrown server-side and it does not give me much info to debug.</p>
  
  <p>If these web services were truly identical, would swapping out the endpoint URL in my application configuration be enough to switch references between the two web services or am I grossly misunderstanding something?</p>