importing WSDL in SoapUI with simpletype referenced in extension
<p>I'm importing a WSDL in SoapUI and getting the following error:</p>
<blockquote>
<p>Error: Could not find type 'MonthType'. Do you mean to refer to the
type named
MonthType@http://www.sainsburys.co.uk/eai/canonical/types/v1.0 (in
sendPaymentOverride_v0.2.wsdl)?</p>
</blockquote>
<p>I have an element of type ComplexType, that references a SimpleType as an extension. And SoapUI doesn't seem to like this...any idea how I can get around this? I think the WSDL is valid.</p>
<p>Appreciate all the help I can get!</p>
<pre><code>&lt;xs:schema targetNamespace=&quot;http://www.sainsburys.co.uk/eai/canonical/types/v1.0&quot; elementFormDefault=&quot;qualified&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
  &lt;xs:element name=&quot;PaymentCardOverride&quot;&gt;
    &lt;xs:complexType id=&quot;PaymentCardOverrideType&quot;&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name=&quot;OrderNumber&quot; type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
        &lt;xs:element name=&quot;RequestPayment&quot; type=&quot;xs:boolean&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
        &lt;xs:element name=&quot;PurgeSecurePaymentDetails&quot; type=&quot;xs:boolean&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
        &lt;xs:element name=&quot;CardNumber&quot; type=&quot;xs:string&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
        &lt;xs:element name=&quot;PreserveExistingCard&quot; type=&quot;xs:boolean&quot; use=&quot;required&quot;/&gt;
        &lt;xs:element name=&quot;ExpiryMonth&quot; type=&quot;ExpiryMonthType&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot; nillable=&quot;true&quot;/&gt;
        &lt;xs:element name=&quot;ExpiryYear&quot; type=&quot;ExpiryYearType&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
        &lt;xs:element name=&quot;StoreNumber&quot; type=&quot;xs:integer&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  &lt;xs:simpleType name=&quot;MonthType&quot;&gt;
     &lt;xs:union&gt;
        &lt;xs:simpleType&gt;
           &lt;xs:restriction base=&quot;xs:integer&quot;&gt;
              &lt;xs:minInclusive value=&quot;1&quot;/&gt;
              &lt;xs:maxInclusive value=&quot;12&quot;/&gt;
           &lt;/xs:restriction&gt;
        &lt;/xs:simpleType&gt;
        &lt;xs:simpleType&gt;
          &lt;xs:restriction base='xs:string'&gt;
            &lt;xs:length value='0'/&gt;
          &lt;/xs:restriction&gt;
        &lt;/xs:simpleType&gt;
    &lt;/xs:union&gt;
  &lt;/xs:simpleType&gt;
  &lt;xs:complexType name=&quot;ExpiryMonthType&quot;&gt;
     &lt;xs:simpleContent&gt;
       &lt;xs:extension base=&quot;MonthType&quot;&gt;
         &lt;xs:attribute name=&quot;PreserveExisting&quot; type=&quot;xs:boolean&quot; use=&quot;required&quot;/&gt;    
       &lt;/xs:extension&gt;
     &lt;/xs:simpleContent&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:simpleType name=&quot;YearType&quot;&gt;
    &lt;xs:union&gt;
      &lt;xs:simpleType&gt;
        &lt;xs:restriction base=&quot;xs:integer&quot;&gt;
          &lt;xs:minInclusive value=&quot;2015&quot;/&gt;
        &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
      &lt;xs:simpleType&gt;
        &lt;xs:restriction base='xs:string'&gt;
          &lt;xs:length value='0'/&gt;
        &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
    &lt;/xs:union&gt;
 &lt;/xs:simpleType&gt;
 &lt;xs:complexType name=&quot;ExpiryYearType&quot;&gt;
   &lt;xs:simpleContent&gt;
     &lt;xs:extension base=&quot;YearType&quot;&gt;
       &lt;xs:attribute name=&quot;PreserveExisting&quot; type=&quot;xs:boolean&quot; use=&quot;required&quot;/&gt;
     &lt;/xs:extension&gt;
   &lt;/xs:simpleContent&gt;
 &lt;/xs:complexType&gt;
&lt;/xs:schema&gt;
</code></pre>