In Libcloud we usually try to avoid 3rd party library dependencies because it makes supporting multiple Python versions and some other things hard.
Because of that, we don't use soaplib or a similar library for talking to the SOAP APIs. For talking to the SOAP APIs, we manually generate XML for the requests using elementtree library. IIRC, vCloud exposes a SOAP API, so you can find some examples at https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/vcloud.py Keep in mind that vCloud driver doesn't really follow all the Libcloud code conventions, etc. so it might not be the best / nicest example, but you can at least get the idea of how to use elementtree. For a good overal example, you should look at the CloudSigma API v2.0 driver - https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/cloudsigma.py#L968 On Thu, Jul 3, 2014 at 10:26 PM, Matt Baldwin <[email protected]> wrote: > Currently, I'm working on a compute driver for a provider with only a SOAP > API. What is the recommended approach to handle SOAP within libcloud? Any > examples I can look at? > > Thanks. > -matt >
