You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by Matt Baldwin <ba...@stackpointcloud.com> on 2014/07/03 22:26:17 UTC

[dev] SOAP

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

Re: [dev] SOAP

Posted by Matt Baldwin <ba...@stackpointcloud.com>.
Great, thanks guys. I think I might have the connection class working --
testing it today.

-matt


On Mon, Jul 7, 2014 at 1:11 AM, <ph...@stfc.ac.uk> wrote:

> Hi Tomaz, Matt,
>
> I don’t think vCloud has a SOAP interface.  Certainly the examples I’ve
> been working with from libcloud use a RESTful API.  I’ve been adding some
> simple changes and to enable it to support vCloud 5.5 so I’d be interested
> to find out if there are ways it could be made to conform better with the
> libcloud conventions.
>
> Cheers,
> Phil
>
> On 5 Jul 2014, at 16:24, Tomaz Muraus <to...@apache.org> wrote:
>
> > 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 <
> baldwin@stackpointcloud.com>
> > 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
> >>
>
> --
> Scanned by iCritical.
>

Re: [dev] SOAP

Posted by ph...@stfc.ac.uk.
Hi Tomaz, Matt,

I don’t think vCloud has a SOAP interface.  Certainly the examples I’ve been working with from libcloud use a RESTful API.  I’ve been adding some simple changes and to enable it to support vCloud 5.5 so I’d be interested to find out if there are ways it could be made to conform better with the libcloud conventions.

Cheers,
Phil

On 5 Jul 2014, at 16:24, Tomaz Muraus <to...@apache.org> wrote:

> 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 <ba...@stackpointcloud.com>
> 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
>> 

-- 
Scanned by iCritical.

Re: [dev] SOAP

Posted by Tomaz Muraus <to...@apache.org>.
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 <ba...@stackpointcloud.com>
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
>