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