title: WSDL generated proxy class
body: <p>I have a question regarding the generated proxy class for a web service. Basically I've tried to add a web service reference to my solution but i couldn't because of a missing discorvery file, so I did as a lot of ppl said on the internet by generating a proxy class with WSDL and then instatiate it and use it.</p>
  
  <p>So basically i got a nice proxy class, but how do i used it, of course i can instantieate it and call the methods BUT how is it now connected to the actual web service on some server on internet?</p>
  
  <p>If you look at the wsdl file, you will find for example:</p>
  
  <pre><code> &lt;wsdl:service name="AuthenticationService"&gt;
    &lt;wsdl:documentation&gt;Provides simple authentication capability.&lt;/wsdl:documentation&gt; 
     &lt;wsdl:port binding="auth:AuthenticationServiceSoapBinding" name="AuthenticationService"&gt;
    &lt;wsdlsoap:address location="http://localhost:8080/alfresco/api/AuthenticationService" /&gt; 
    &lt;/wsdl:port&gt;
    &lt;/wsdl:service&gt;
  </code></pre>
  
  <p>It redirects to localhost of the requested webserver etc etc ...</p>
  
  <p>But when in my class i have this as constructor with 'localhost' url, but the web service is running on other server so yeah it is normal that i'll not be able to connect.</p>
  
  <pre><code>public AuthenticationService() {
      this.Url = "http://localhost:8080/alfresco/api/AuthenticationService";
   }
  </code></pre>
  
  <p>But how can I now correctly use this now?</p>
  
  <p>Should i set this url to the original url of wsdl file? 
  Something like that: <code>http://internetserver:8080/alfresco/api/AuthenticationService.wsdl</code> ? Doing that returns me wsdl file back but not the results and i get error. Trying something else i get 404 as a result ....</p>
  
  <p>Any idea about that?</p>