Log In to Convio Web Services with three lines of Python

I was on the look out for a good SOAP library for Python now that I am the new Convio “API Guy.”

Convio Logo

In my search I discovered this library:

Suds

To test it out I tried making successful connection to Convio Web Services.

1
2
3
from suds.client import Client
client = Client('https://secureX.convio.net/1.0/CLIENT/wsdl')
result = client.service.Login('apiadmin', 'password')

Boom. Straight in, no fuss no muss. Pretty impressive. I’m going to play with Suds and CWS a bit more to see if there is actually a robust Python based syncing application that can be made here. I’m led to believe Suds is not great for creating SOAP servers, but it makes for a very “Pythonic” and easy to understand way to create a SOAP client.

Leave a Reply