title: Override entire address in WSDL
body: <p>I have created a simple spring-boot SOAP webservice using this guide:
  <a href="https://spring.io/guides/gs/producing-web-service/" rel="noreferrer">https://spring.io/guides/gs/producing-web-service/</a></p>
  
  <p>I am deploying it to a cloud service, but will have an API management layer in front of it.</p>
  
  <p>I would like the WSDL to have the  use the URL of the API management layer. (Essentially hardcode the address.)</p>
  
  <p>I have tried two methods:</p>
  
  <ol>
  <li><p>Use a DefaultWsdl11Definition.setLocationUri()</p>
  
  <pre><code>@Bean(name = "countries")
  public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) {
  DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition();
  wsdl11Definition.setPortTypeName("CountriesPort");
  wsdl11Definition.setLocationUri("http://example.com/ws");
  wsdl11Definition.setTargetNamespace("http://spring.io/guides/gs-producing-web-service");
  wsdl11Definition.setSchema(countriesSchema);
  return wsdl11Definition;
  }
  </code></pre></li>
  <li><p>Use SimpleWsdl11Definition.setWsdl() to point to a hand-edited WSDL</p>
  
  <pre><code>@Bean(name = "countries")
  public SimpleWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) {
  SimpleWsdl11Definition wsdl11Definition = new SimpleWsdl11Definition();
  wsdl11Definition.setWsdl(new ClassPathResource("countries.wsdl")); //this WSDL was edited to have the path I want
  return wsdl11Definition;
  } 
  </code></pre></li>
  </ol>
  
  <p>I am building with Maven. In both cases, the WSDL hosted by the application replaces the host name with the server it is running on, e.g. <a href="http://localhost:8080/" rel="noreferrer">http://localhost:8080/</a> and then uses the rest of the URI.</p>
  
  <pre><code>    &lt;wsdl:service name="CountriesPortService"&gt;
      &lt;wsdl:port binding="tns:CountriesPortSoap11" name="CountriesPortSoap11"&gt;
      &lt;soap:address location="http://localhost:8080/ws"/&gt;
      &lt;/wsdl:port&gt;
      &lt;/wsdl:service&gt;
  </code></pre>
  
  <p>How do I set/override the hostname portion of the </p>