Lupin Deterd wrote at 2014-5-28 16:56 +1200: > I'm using suds for accessing SOAP server but it's failling. Same with >this issue unfortunately the suggested work-around isn't working. suds >failed without internet >access<https://mail.python.org/pipermail/soap/2011-May/000453.html> > >The problem with suds is that it tries to download from the internet >XMLSchema.xsd without success: > >DEBUG:suds.xsd.sxbasic:Import:0xb7808a6cL, importing >ns="http://www.w3.org/2001/XMLSchema", >location="http://www.w3.org/2001/XMLSchema.xsd" >DEBUG:suds.transport.http:opening >(http://www.w3.org/2001/XMLSchema.xsd)Traceback (most recent call >last):..... >urllib2.URLError: <urlopen error timed out> > > >I am not a full time developer, so my question are: > >-> Why does a library like that need to reference an online link?
Because the WSDL you are (indirectly) using explicitely imports this schema (there is no need to do this). >-> Is there any work-around for this that will work without this suds >client access to internet? If you have control over the WSDL (and the schema referenced therein), the easiest thing would be to remove the "XMLSchema" "import" (you must define the namespace but there is no need to import the actual definitions). If you cannot do this, "suds" has some support to handle broken WSDLs - look at the "suds" documentation; when I remember right there is a section "how to handle broken WSDL" (or something like that). _______________________________________________ Soap mailing list [email protected] https://mail.python.org/mailman/listinfo/soap
