Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SOAP.py and complex types

3 views
Skip to first unread message

David Levy

unread,
Jul 22, 2002, 6:22:58 AM7/22/02
to
Hi

I am using Python to call Web Services, with SOAP.py (0.9.7) library
However I can't figure how to use it when input messages requires user
defined types like the one for the new Amazon web service :
http://soap.amazon.com/schemas/AmazonWebServices.wsdl

does anyone know how to do it ?

Thanks


--
_____________________________________________________________
David Levy Xerox Research Centre Europe
6, ch. de Maupertuis F - 38240 Meylan
Email david...@xrce.xerox.com http://www.xrce.xerox.com

Fredrik Lundh

unread,
Jul 22, 2002, 11:26:17 AM7/22/02
to
David Levy wrote:

> I am using Python to call Web Services, with SOAP.py (0.9.7) library
> However I can't figure how to use it when input messages requires user
> defined types like the one for the new Amazon web service :
> http://soap.amazon.com/schemas/AmazonWebServices.wsdl
>
> does anyone know how to do it ?

dunno, but it looks like mark pilgrim might have figured
it out:

http://diveintomark.org/projects/#pyamazon

</F>


David Levy

unread,
Jul 23, 2002, 3:41:45 AM7/23/02
to
thanks
that's cool

but he is not using the SOAP interface actually !
one the HTTP GET (url passed parameters) one

so that just helps me for calling Amazon but no others complex web services
... :(


Fredrik Lundh wrote:

--

Culley Angus

unread,
Jul 23, 2002, 9:52:41 PM7/23/02
to
I had some issues with this as well...

My problems were solved using by including the typename in the
structType.

soapobj=SOAP.structType(data=structdat, name=(namespace, myname))

where 'myname' is the type name of the object to pack, i.e. "Details"

Hope this helps.

David Levy

unread,
Jul 24, 2002, 4:39:52 AM7/24/02
to
thanks !

that helps me indeed !
I could call the Amazon web service :)

is there any python library to handle XML Schemas ?

Thanks

Culley Angus wrote:

--

0 new messages