title: Python/Suds: Type not found: 'xs:complexType'
body: <p>I have the following simple python test script that uses <a href="https://fedorahosted.org/suds/" rel="noreferrer">Suds</a> to call a SOAP web service (the service is written in ASP.net):</p>
  
  <pre><code>from suds.client import Client
  
  url = 'http://someURL.asmx?WSDL'
  
  client = Client( url )
  
  result = client.service.GetPackageDetails( "MyPackage"  )
  
  print result
  </code></pre>
  
  <p>When I run this test script I am getting the following error (used code markup as it doesn't wrap):</p>
  
  <pre><code>No handlers could be found for logger "suds.bindings.unmarshaller"
  Traceback (most recent call last):
    File "sudsTest.py", line 9, in &lt;module&gt;
      result = client.service.GetPackageDetails( "t3db"  )
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 240, in __call__
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 379, in call
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 240, in __call__
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 422, in call
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 480, in invoke
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 505, in send
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/client.py", line 537, in succeeded
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/binding.py", line 149, in get_reply
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 303, in process
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 88, in process
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 104, in append
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 181, in append_children
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 104, in append
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 181, in append_children
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 104, in append
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 181, in append_children
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 102, in append
    File "build/bdist.cygwin-1.5.25-i686/egg/suds/bindings/unmarshaller.py", line 324, in start
  suds.TypeNotFound: Type not found: 'xs:complexType'
  </code></pre>
  
  <p>Looking at the source for the WSDL file's header (reformatted to fit):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
  &lt;wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
  xmlns:s="http://www.w3.org/2001/XMLSchema" 
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
  xmlns:tns="http://http://someInternalURL/webservices.asmx" 
  xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" 
  xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
  targetNamespace="http://someURL.asmx" 
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&gt;
  </code></pre>
  
  <p>I am guessing based on the last line of output:</p>
  
  <pre><code>suds.TypeNotFound: Type not found: 'xs:complexType'
  </code></pre>
  
  <p>That I need to use Sud's <a href="https://fedorahosted.org/suds/wiki/Documentation#FIXINGBROKENSCHEMAs" rel="noreferrer">doctor class</a> to fix the schema but being a SOAP newbie I don't know what exactly needs fixed in my case.  Does anyone here have any experience using Suds to fix/correct schema?</p>