Matthew,
I see two problems here.
1) The wsdl is broken because by definition, xs:import is used to import schema with a
different namespace. They are the same here so they should have used xs:include.
2) Suds implementation of xs:include is broken.
I'll fix and get back with you. Depending on how I fix this, you may be able to use
the
wsdl as is (without changing the xs:import to xs:include). But, no guarantees.
Regards,
Jeff
Matthew wrote:
Hi guys,
Looks like mlb.com's wsdl's are a little iffy once again. Last time it
was their MediaService.wsdl. This time I'd like to use their
IdentityPointService.wsdl to perform authentication.
The wsdl in question is here:
http://www.mlb.com/flash/mediaplayer/v4/wsdl/IdentityPointService.wsdl
and it's xsd here:
http://www.mlb.com/flash/mediaplayer/v4/wsdl/IdentityPointService.xsd
Here's the code I'm trying:
import sys
import logging
logging.basicConfig(level=logging.INFO)
import suds
from suds.client import Client
from suds.xsd.sxbasic import Import
logging.getLogger('suds.client').setLevel(logging.DEBUG)
url = 'file:///home/matthew/mlb-2009/sudsy/IdentityPointService.wsdl'
client = Client(url)
And the error I get:
>>> client = Client(url)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "build/bdist.linux-i686/egg/suds/client.py", line 109, in __init__
File "build/bdist.linux-i686/egg/suds/servicedefinition.py", line 52,
in __init__
File "build/bdist.linux-i686/egg/suds/servicedefinition.py", line 132,
in paramtypes
File "build/bdist.linux-i686/egg/suds/xsd/sxbasic.py", line 156, in
resolve
suds.TypeNotFound: Type not found: '(identityPoint,
http://services.bamnetworks.com/registration/types/1.4, )'
I don't have any control over their WSDL/XSD so if you guys can tell me
what lines need to change, I will use local copies of these files using
file:// url's to make requests.
Thanks,
Matthew
------------------------------------------------------------------------
_______________________________________________
fedora-suds-list mailing list
fedora-suds-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-suds-list