title: Stop jax-ws creating a local absolute path
body: <p>I've looked high and low for a solution to this problem</p>
  
  <p>I have a java project (which I've inherited). It is essentially a RESTful wrapper to a SOAP web service. I'm not entirely sure why other than they were having problems with PHP connecting to their Webservice so created a Restful service which connected to the WS as a client. </p>
  
  <p>The problem is that the jax-ws autogenerated web services artifacts/classes are being hardcoded to a local path as the machine which compiles the project. Here is the example of annotations created in the java file which is auto generated by jax-ws upon project compile.</p>
  
  <pre><code>/**
   * This class was generated by the JAX-WS RI.
   * JAX-WS RI 2.2.10-b140803.1500
   * Generated source version: 2.2
   * 
   */
  @WebServiceClient(
  name = "flahImplService", 
  targetNamespace = "http://flah.com/", 
  wsdlLocation = "file:/C:/Users/WindowsUser/PathToNetBeansProjectFolder/flah.wsdl")
  public class flahImplService
  
  }
  </code></pre>
  
  <p>It seems to be linking to the online WSDL and building the files based on that.</p>
  
  <p>The only other important thing i can find is that in /nbproject/jax-ws.xml there is a xml such as this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jax-ws xmlns="http://www.netbeans.org/ns/jax-ws/1"&gt;
    &lt;services&gt;
      &lt;service name="flahImplService"&gt;
        &lt;implementation-class&gt;com.service.management.flahImplService&lt;/implementation-class&gt;
        &lt;wsdl-url&gt;https://blah.com/flah.wsdl&lt;/wsdl-url&gt;
        &lt;wsdl-url&gt;blah.com/flah.wsdl&lt;/wsdl-url&gt;
  </code></pre>
  
  <p>Where should I be specifying a path to replace this auto generate and hardcoded local WSDL location?</p>
  
  <p>Edit: btw, when I run this project locally it of course works because the path to the wsdl file is ok, but when deployed to the application server it fails.</p>