Web API and Python

Has any been able to access the API using Python?

 

I've tried using ActivePython 2.6 and the SUDS soap library, but I get an error. Soap is new to me so I might be doing something wrong. I'm not trying to create web pages here, just automate some API method calls for testing.

 

Here's my python test code..

from suds import WebFault
from suds.client import Client
 
client = Client('http://localhost/webservice_test/Tessitura.asmx?WSDL')

#client = Client('http://localhost/webservice_test/Tessitura.asmx')
 
print client

 

..and here's the error..

 

  File "C:\Python26\Lib\SITE-P~1\PYTHON~1\pywin\framework\scriptutils.py", line 312, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\Documents and Settings\jstephenson\My Documents\python scripts\test.py", line 4, in <module>
    client = Client('http://localhost/webservice_test/Tessitura.asmx?WSDL')
  File "build\bdist.win32\egg\suds\client.py", line 103, in __init__
    self.wsdl = Definitions(url, options)
  File "build\bdist.win32\egg\suds\wsdl.py", line 192, in __init__
    self.build_schema()
  File "build\bdist.win32\egg\suds\wsdl.py", line 253, in build_schema
    self.schema = container.load()
  File "build\bdist.win32\egg\suds\xsd\schema.py", line 87, in load
    merged.dereference()
  File "build\bdist.win32\egg\suds\xsd\schema.py", line 299, in dereference
    child.dereference()
  File "build\bdist.win32\egg\suds\xsd\sxbase.py", line 335, in dereference
    self.mutate()
  File "build\bdist.win32\egg\suds\xsd\sxbasic.py", line 694, in mutate
    raise TypeNotFound(qref)
TypeNotFound: Type not found: '(schema, http://www.w3.org/2001/XMLSchema, )'

 

I'd appreciate any help here.

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

John Stephenson

Database Administrator

Cincinnati Symphony and Pops Orchestras

513-621-1919

jstephenson@cincinnatisymphony.org

www.cincinnatisymphony.org

 

Parents Reply Children
No Data