title: Do multiple XML schemas in a single WSDL need to use xsd:import or not?
body: <p>I am new to WSDL. I have a question regarding XML schema namespaces.</p>
  
  <p>Suppose I have defined three namespaces inside the <em>definition</em> tag:</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;definitions xmlns="http://schemas.xmlsoap.org/wsdl/" 
      xmlns:tns="urn:arjun/ws/prime/primeservice/" 
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
      xmlns:Query="urn:/arjun/xml/prime/primeservice/query" 
      xmlns:Data="urn:/arjun/xml/prime/primeservice/data" 
      targetNamespace="urn:arjun/ws/prime/primeservice/" &gt;
  </code></pre>
  
  <p>And when I am defining a type in one of the namespaces do I need to import other namespace if I need a reference to that namespace (like in the below example)</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;types&gt;
      &lt;xsd:schema targetNamespace="urn:arjun/ws/prime/primeservice/"
          xmlns:xsd="http://www.w3.org/2001/XMLSchema"
          attributeFormDefault="unqualified" 
          elementFormDefault="qualified"&gt;
  
          &lt;xsd:import namespace="urn:/arjun/xml/prime/primeservice/query"/&gt;
  
          &lt;xsd:element name="Input" type="tns:Input"/&gt;
          &lt;xsd:complexType name="Input"&gt;
              &lt;xsd:sequence&gt;
                  &lt;xsd:element ref="Query:StanderedInput"/&gt; 
              &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
  
          ...
      &lt;/xsd:schema
  &lt;/types&gt;
  </code></pre>
  
  <p>or I can simply refer to it without importing that namespace?</p>