Created
December 12, 2013 03:27
-
-
Save sudorandom/7922771 to your computer and use it in GitHub Desktop.
Very primitive way to use suds with the SoftLayer API through SOAP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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