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
> 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>
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:
--
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.
that helps me indeed !
I could call the Amazon web service :)
is there any python library to handle XML Schemas ?
Thanks
Culley Angus wrote:
--