Aymeric,

 

I'm new to SUDS and am trying to store the schema files locally, as you
described.  Here is my code:

 

_______

import os

from suds.client import Client

from suds.xsd.sxbasic import Import

 

SSURGO_url =
'http://sdmdataaccess.nrcs.usda.gov/Tabular/SDMTabularService.asmx?WSDL'

xmlschemas_path = 'file://' + os.path.join(ROOT_DIR, 'cache', 'suds',
'XMLSchema.xsd')

Import.bind('http://www.w3.org/2001/XMLSchema', xmlschemas_path)

 

client = Client(SSURGO_url)

_______

 

 

However, I get the following:

TypeNotFound: Type not found: '(schema, http://www.w3.org/2001/XMLSchema, )'

 

What am I missing?  Do I need to utilize the ImportDoctor module to fix the
broken schema?  If so, ImportDoctor's Import class does not seem to align
with the Import class of suds.xsd.basic.

 

Any help is much appreciated.

 

Thanks.

 

Glenn

 

_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to