title: How to change wsdl location file inside service
body: <p>I have a preliminary MyService generated with the wsimport gradle task with provided wsdl location path file:/D:/someLocationWherePlacedMyWSDl.interface.v2.wsdl</p>
  
  <pre><code>public class MyService
      extends Service
  {
  
      private final static URL MyService_WSDL_LOCATION;
      private final static Logger logger = Logger.getLogger(com.google.services.MyService.class.getName());
  
      static {
          URL url = null;
          try {
              URL baseUrl;
              baseUrl = com.google.services.MyService.class.getResource(".");
              url = new URL(baseUrl, "file:/D:/someLocationWherePlacedMyWSDl.interface.v2.wsdl");
          } catch (MalformedURLException e) {
              logger.warning("Failed to create URL for the wsdl Location: 'file:/D:/someLocationWherePlacedMyWSDl.interface.v2.wsdl', retrying as a local file");
              logger.warning(e.getMessage());
          }
          MyService_WSDL_LOCATION = url;
      }
  }
  </code></pre>
  
  <p>How can I change it? It happens because the file was generated in one environment and then the artifact (war) was moved to another server.</p>
  
  <p>Any thoughts?</p>
  
  <hr>
  
  <p>Yes, I get it.  Locally everything works perfectly. But this file located inside war file and when Jenkins trying to get this file /var/distributives/myservice/tomcat-base/wsdl/someLocationWherePlacedMyWSDl.interface.v2.wsdl I get exception (No such file or directory). It looks like it could not see files inside war file. Any thoughts how can I handle this?</p>