title: Oracle Service Bus (11.1.1.6.0): <xsd:include> issue
body: <p>IF I use this schema:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  elementFormDefault="qualified"&gt;
  &lt;xsd:element name="Chick"&gt;
     &lt;xsd:complexType&gt;
          &lt;xsd:sequence&gt;
              &lt;xsd:element name="count" type="xsd:decimal" /&gt;
          &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;
  &lt;/xsd:element&gt;
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>With this wsdl:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:tns="http://www.example.org/test/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="test"
  xmlns:chi="chick"
  targetNamespace="http://www.example.org/test/"&gt;
  &lt;wsdl:types&gt;
      &lt;xsd:schema targetNamespace="http://www.example.org/test/"&gt;
          &lt;xsd:include schemaLocation="testschema.xsd"&gt;&lt;/xsd:include&gt;
          &lt;xsd:include  id="ada" schemaLocation="testschema.xsd" /&gt;
          &lt;xsd:element name="doTheRightThing"&gt;
              &lt;xsd:complexType&gt;
                  &lt;xsd:sequence&gt;
                      &lt;xsd:element ref="Chick" /&gt;
                  &lt;/xsd:sequence&gt;
              &lt;/xsd:complexType&gt;
          &lt;/xsd:element&gt;
          &lt;xsd:element name="doTheRightThingResponse"&gt;
              &lt;xsd:complexType&gt;
                  &lt;xsd:sequence&gt;
                      &lt;xsd:element name="out" type="xsd:string" /&gt;
                  &lt;/xsd:sequence&gt;
              &lt;/xsd:complexType&gt;
          &lt;/xsd:element&gt;
      &lt;/xsd:schema&gt;
  &lt;/wsdl:types&gt;
  &lt;wsdl:message name="doTheRightThingRequest"&gt;
      &lt;wsdl:part element="tns:doTheRightThing" name="parameters" /&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="doTheRightThingResponse"&gt;
      &lt;wsdl:part element="tns:doTheRightThingResponse" name="parameters" /&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:portType name="test"&gt;
      &lt;wsdl:operation name="doTheRightThing"&gt;
          &lt;wsdl:input message="tns:doTheRightThingRequest" /&gt;
          &lt;wsdl:output message="tns:doTheRightThingResponse" /&gt;
      &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;
  &lt;wsdl:binding name="testSOAP" type="tns:test"&gt;
      &lt;soap:binding style="document"
          transport="http://schemas.xmlsoap.org/soap/http" /&gt;
      &lt;wsdl:operation name="doTheRightThing"&gt;
          &lt;soap:operation
              soapAction="http://www.example.org/test/doTheRightThing" /&gt;
          &lt;wsdl:input&gt;
              &lt;soap:body use="literal" /&gt;
          &lt;/wsdl:input&gt;
          &lt;wsdl:output&gt;
              &lt;soap:body use="literal" /&gt;
          &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
  &lt;/wsdl:binding&gt;
  &lt;wsdl:service name="test"&gt;
      &lt;wsdl:port binding="tns:testSOAP" name="testSOAP"&gt;
          &lt;soap:address location="http://www.example.org/" /&gt;
      &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
      &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>I get this error message:</p>
  
  <p><strong>Error building the Schema Type system for the WSDL:
  D:\Oracle\Middleware_11.1.1.6.0\user_projects\domains\osb_cookbook_domain\test:0: error: src-resolve.a: Could not find element 'Chick'. Do you mean to refer to the element named Chick@http://www.example.org/test/ (in testschema)?</strong></p>
  
  <p>If I change this line in wsdl:</p>
  
  <pre><code> &lt;xsd:element ref="Chick" /&gt;
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code> &lt;xsd:element ref="tns:Chick" /&gt;
  </code></pre>
  
  <p>I could not deploy, OEPE returns this error message:</p>
  
  <p><strong>The WSDL is not semantically valid: error: src-resolve: element 'Chick@http://www.example.org/test/' not found..</strong>    </p>
  
  <p>Is this a bug?</p>