title: How to change WSDL soap address location , in particular the context part of the url?
body: <p>Here i'm using java first approach to create web service.</p>
  
  <p>I have exposed a web service using JAX-WS by using Endpoint api <code>Endpoint.publish(address,SampleWebService)</code> in JBOSS EAP 6.0 .  </p>
  
  <p>Whatever the value i provide for address field in the above publish method, it didn't matter i.e., i did not see the impact of that.
  <code>SampleWebService</code> above is my  Web service implementation class.
  After deploying the war file ,i will get WSDL file generated in the following location .</p>
  
  <blockquote>
    <p>%JBOSS_HOME%/standalone/data/wsdl/MyProjectName-1.0-SNAPSHOT.war</p>
  </blockquote>
  
  <p>The above generated WSDL file contains soap:address location = "<a href="http://localhost:8080/MyProjectName-1.0-SNAPSHOT/SampleWebService?wsdl" rel="nofollow noreferrer">http://localhost:8080/MyProjectName-1.0-SNAPSHOT/SampleWebService?wsdl</a>"/></p>
  
  <pre><code>@webService(serviceName="SampleWebService")
  public class SampleWebService {
      //Implementation specific logic
  }
  </code></pre>
  
  <p>IS there any way that i can change the context i.e.,  in the soap address location to have MyProjectName instead of MyProjectName-1.0-SNAPSHOT so that the final soap address location will look like following</p>
  
  <blockquote>
    <p>soap:address location =
    "<a href="http://localhost:8080/MyProjectName-1.0-SNAPSHOT/SampleWebService?wsdl" rel="nofollow noreferrer">http://localhost:8080/MyProjectName-1.0-SNAPSHOT/SampleWebService?wsdl</a>"/></p>
  </blockquote>