title: JAX-WS has XSD schema in different URL
body: <p>I made a small web service using JAX-WS. The WSDL file has TYPES element like this.</p>
  
  <pre><code>&lt;types&gt;
    &lt;xsd:schema&gt;
    &lt;xsd:import namespace="http://ws.poc.mawia/" schemaLocation="http://localhost:777/ws/hello?xsd=1"/&gt;
    &lt;/xsd:schema&gt;
  &lt;/types&gt;
  </code></pre>
  
  <p>The URL for web service is <code>http://localhost:777/ws/hello?wsdl</code> and XSD is <code>http://localhost:777/ws/hello?xsd=1</code> .
  The XSD Schema file in different location has the data type definitions like this.</p>
  
  <pre><code>...
   ...
      &lt;xs:complexType name="student"&gt;
       &lt;xs:sequence&gt;
       &lt;xs:element name="name" type="xs:string" minOccurs="0"/&gt;
       &lt;xs:element name="rollNo" type="xs:int"/&gt;
       &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
    ...
   ...
  </code></pre>
  
  <p>Most of the WSDL files I have seen usually has the complete XSD definitions inside the WSDL file itself but JAX-WS is placing it in a different location.</p>
  
  <p>Is this how it should be? How can I configure JAX-WS to place all XSD definitions in one WSDL file?</p>