Skip to content

Instantly share code, notes, and snippets.

@sudorandom
Created December 12, 2013 03:27
Show Gist options
  • Save sudorandom/7922771 to your computer and use it in GitHub Desktop.
Save sudorandom/7922771 to your computer and use it in GitHub Desktop.
Very primitive way to use suds with the SoftLayer API through SOAP
from suds.client import Client
from suds.xsd.doctor import Import, ImportDoctor
imp = Import('http://schemas.xmlsoap.org/soap/encoding/')
imp.filter.add('http://api.service.softlayer.com/soap/v3/')
doctor = ImportDoctor(imp)
client = Client('https://api.softlayer.com/soap/v3/SoftLayer_Account?wsdl', doctor=doctor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment