Hi Paolo,
We're using this code to avoid hitting w3.org during the tests:
import os.path
from suds.xsd import sxbasic
sxbasic.Import.bind('http://www.w3.org/2001/XMLSchema',
'file://' + os.path.join(ROOT_DIR, 'cache', 'suds',
'XMLSchema.xml'))
And we store a copy of XMLSchema.xml in ROOT_DIR/cache/suds/.
Actually, we discovered this after we got blacklisted — see
http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic/
Best regards,
Aymeric Augustin.
On 16 mai 2011, at 12:25, Paolo Losi wrote:
> Hi all,
>
> I'm trying soaplib master branch (checked out yesterday) against suds (0.4)
> in an enviroment without internet access.
>
> 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>
>
> Is there a way to configure soaplib not to trigger suds behaviour?
>
> Thanks!
>
> Paolo
> _______________________________________________
> Soap mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/soap
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap