title: xsd schema not presented by wsdl
body: <p>I'm developing WebService with JAX-WS(i'm using wsimport goal on jaxws-maven-plugin). I wrote a WSDL that imports a XSD schema. </p>
  
  <pre><code>WEB-INF/wsdl/service.wsdl
  WEB-INF/wsdl/service.xsd
  </code></pre>
  
  <p>Also I generated web service classes and created endpoint and all. Everything worked great so far. When I ran my service on Tomcat 7 everything is ok. I can access a wsdl in my browser from:</p>
  
  <pre><code>http://localhost:8080/webService/servlet-url?wsdl
  </code></pre>
  
  <p>but I cannot get access to a xsd schema. The problem is in this wsdl:</p>
  
  <pre><code>&lt;xsd:schema&gt;
  &lt;xsd:import namespace="http://ws.service/domain/1.0" schemaLocation="service.xsd"/&gt;
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>Of course during generation of classes wsdl and xsd are on local path but i want them to be remotely accessible when web service is running. I know that schemaLocation should be something like this "http://localhost:8080/webService/servlet-url?xsd=1".</p>
  
  <p>In wsdl presented in browser import schould look like:</p>
  
  <pre><code>&lt;xsd:schema&gt;
      &lt;xsd:import namespace="http://ws.service/domain/1.0" schemaLocation="http://localhost:8080/webService/servlet-url?wsdl&amp;resource=service.xsd"/&gt;
      &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>localhost:8080/webService/servlet?wsdl gives me:</p>
  
  <pre><code>wsdl:definitions targetNamespace="http://ws.serv.com/Service/1.0" name="emuiaService"&gt;         
  &lt;wsdl:types&gt;
      &lt;xsd:schema&gt;
          &lt;xsd:import namespace="http://ws.serv.com/Service/domain/1.0" schemaLocation="schema.xsd"/&gt;
      &lt;/xsd:schema&gt;
  &lt;/wsdl:types&gt;
  &lt;wsdl:message name="halloMsg"&gt;
      &lt;wsdl:part name="parameters" element="dom:halloRequest"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="halloResponseMsg"&gt;
      &lt;wsdl:part name="return" element="dom:halloResponse"/&gt;
  &lt;/wsdl:message&gt;
  </code></pre>
  
  <p>and so on...</p>