kiorky
21/02/2011, 22h55
Lié a un autre topic cf http://forum.ovh.com/showthread.php?t=49412
import logging from suds.client import Client from suds.xsd.sxbasic import Import from suds.xsd.doctor import Import as dImport from suds.xsd.doctor import ImportDoctor logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG) logging.getLogger('suds.wsdl').setLevel(logging.DEBUG) logging.getLogger('suds.umx.core').setLevel(logging.DEBUG) logging.getLogger('suds.umx.typed').setLevel(logging.DEBUG) Import.bind('http://schemas.xmlsoap.org/soap/encoding/') Import.bind('http://schemas.xmlsoap.org/wsdl/') Import.bind('http://schemas.xmlsoap.org/wsdl/soap/') OVH_WSDL = 'http://www.ovh.com/soapi/soapi-dlw-1.16.wsdl' imp = dImport('http://schemas.xmlsoap.org/soap/encoding/') imp.filter.add('http://schemas.xmlsoap.org/wsdl/') imp.filter.add('http://schemas.xmlsoap.org/wsdl/soap/') imp.filter.add(OVH_WSDL) doctor = ImportDoctor(imp) client = Client(OVH_WSDL, doctor=doctor) # user, password session = client.service.login("*****","****", 'fr', 0) invoices = client.service.billingInvoiceList(session)
TypeNotFound: Type not found: 'typens:domain'