python - SOAP suds library Type Not Found Error
<p>I'm trying to create Python client for Textbroker API, but having troubles accessing their SOAP interface. I can access Login Service ( <a href="https://api.textbroker.com/Budget/loginService.php?wsdl" rel="nofollow">https://api.textbroker.com/Budget/loginService.php?wsdl</a> ) just fine, but when I try to access Budget Check Service ( <a href="https://api.textbroker.com/Budget/budgetCheckService.php?wsdl" rel="nofollow">https://api.textbroker.com/Budget/budgetCheckService.php?wsdl</a> ), I get the following error message:</p>

<blockquote>
  <p>suds.TypeNotFound: Type not found: '(Struct, <a href="http://www.w3.org/2001/XMLSchema" rel="nofollow">http://www.w3.org/2001/XMLSchema</a>, )'</p>
</blockquote>

<p>As far as I understood reading other similar questions, I need to use ImportDoctor to fix this issue. I tried the following:</p>

<pre><code>    class BaseService:
        password = None
        wsdl = None
        client = None

        def __init__(self):
            imp = Import('http://www.w3.org/2001/XMLSchema')
            imp.filter.add("urn:loginService")
            self.client = Client(self.wsdl, doctor=ImportDoctor(imp), cache=None)
</code></pre>

<p>But unfortunately I still get the same error message. I'm almost sure I need to use ImportDoctor to fix this problem, I just do it wrong.</p>