Note that there are some explanatory texts on larger screens.

plurals
  1. POSOAP suds and the dreaded schema Type Not Found error
    primarykey
    data
    text
    <p>I'm using the latest version of suds (<a href="https://fedorahosted.org/suds/" rel="nofollow noreferrer">https://fedorahosted.org/suds/</a>) for the first time and I'm getting stalled at step one. </p> <pre><code>suds.TypeNotFound: Type not found: '(schema, http://www.w3.org/2001/XMLSchema, )' </code></pre> <p>Now, I know this is well covered ground in the suds world (<a href="https://fedorahosted.org/suds/wiki/TipsAndTricks#Schema-TypeNotFound" rel="nofollow noreferrer">https://fedorahosted.org/suds/wiki/TipsAndTricks#Schema-TypeNotFound</a> and <a href="https://stackoverflow.com/questions/1329190/python-suds-type-not-found-xscomplextype">Python/Suds: Type not found: &#39;xs:complexType&#39;</a>) but this appears to slightly different because (a) schema is supposed to be automatically bound after version 0.3.4 and (b) even explicitly using the workaround, it still doesn't work.</p> <pre><code>from suds.client import Client from suds.xsd.sxbasic import Import url = 'file:wsdl.wsdl' Import.bind('http://schemas.xmlsoap.org/soap/encoding/') client = Client(url, cache = None) </code></pre> <p>with the wsdl:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://ws.client.com/Members.asmx" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://ws.client.com/Members.asmx" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&gt; &lt;wsdl:types&gt; &lt;s:schema elementFormDefault="qualified" targetNamespace="http://ws.client.com/Members.asmx"&gt; &lt;s:element name="GetCategoriesResponse"&gt; &lt;s:complexType&gt; &lt;s:sequence&gt; &lt;s:element minOccurs="0" maxOccurs="1" name="GetCategoriesResult"&gt; &lt;s:complexType&gt; &lt;s:sequence&gt; &lt;s:element ref="s:schema" /&gt; &lt;s:any /&gt; &lt;/s:sequence&gt; &lt;/s:complexType&gt; &lt;/s:element&gt; &lt;/s:sequence&gt; &lt;/s:complexType&gt; &lt;/s:element&gt; &lt;/s:schema&gt; &lt;/wsdl:types&gt; &lt;/wsdl:definitions&gt; </code></pre> <p>yields the exception above.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload