title: C# - How to add a SOAP web service reference to my project?
body: <p>I am attempting to add a web service reference from an example project into my current VS 2015 C# project. This is what I have in the example project: </p>
  
  <p><a href="https://i.stack.imgur.com/jho3A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jho3A.png" alt="enter image description here"></a></p>
  
  <p>To move it over to my new project, I have attempted to copy and paste the "Address" field into my project by right clicking my project and selecting "Add Service Reference". When I do this I get the following error:</p>
  
  <pre><code>There was an error downloading 'http://myserver.com/MyServiceExample.svc?wsdl/$metadata'.
  
  The remote name could not be resolved: 'myserver.com'
  Metadata contains a reference that cannot be resolved: 'http://myserver.com/MyServiceExample.svc?wsdl/$metadata'.
  There was no endpoint listening at 'http://myserver.com/MyServiceExample.svc?wsdl/$metadata that could accept the message. 
  
  This is often caused by an incorrect address or SOAP action.     
  See InnerException, if present, for more details.
  
  The remote name could not be resolved: 'myserver.com'
  If the service is defined in the current solution, try building the solution    and adding the service reference again.
  </code></pre>
  
  <p>How can I go about adding this service reference into my project? I have tried adding it in by using the VS 2015 CMD Prompt with the <code>WSDL /verbose</code> command, but this does not seem to be working. I have the project files and wsdl files for the example, but I cannot get them to work on my solution. </p>