[Fedora-suds-list] Type not found: '(schema, http://www.w3.org/2001/XMLSchema, )' issue.

Michael Sommerville msommerville at gmail.com
Mon Sep 13 23:00:08 UTC 2010


On Mon, Sep 13, 2010 at 11:21 PM, Adam Olsen <arolsen at gmail.com> wrote:
> Can anyone help me figure out why suds won't work with this URL:
> https://www.securefreedom.com/SendOutCardsStaging/personal/webservice/SendoutcardsAPI.asmx?WSDL
>
> The error is in the subject.

Hi Adam,

Blatantly copying Jeff's example....the following works for me on 0.4:

from suds.client import Client
from suds.xsd.doctor import ImportDoctor, Import

url = 'https://www.securefreedom.com/SendOutCardsStaging/personal/webservice/SendoutcardsAPI.asmx?WSDL'
imp = Import('http://www.w3.org/2001/XMLSchema')    # the schema to import.
imp.filter.add('http://www.securefreedom.com/') # the schema to import into.
d = ImportDoctor(imp)
client = Client(url, doctor=d)
print client

-Mike


More information about the suds mailing list