Good Morning, Everyone -
I am working on using suds to generate a request for an existing service and have a structure that needs to look like the following:
<search_paramaeters> <search_parameter name='shoesize'>10.5</search_parameter> <search_parameter name='hatsize'>11 5/8</search_parameter> <search_parameter name='inseam'>32</search_parameter> </search_parameters>
How do I get suds to construct that (or, is it a funciton of the request object)?
Thanks for your help, --greg
So you created a client from a wsdl
import Client from suds.client
c = Client(url="mywsdl.wsdl")
and want to create a search_parameters structure? so..
sp = c.factory.create('search_ parameters')
and then fill it out accordingly sp.shoesize = 10.5 sp.hatsize = '11 5/8' sp.inseam = 32
then call whatever service that needs that search_parameter object service_name = 'I dunno which function you need' getattr(c.service, service_name)(sp)
I'm just guessing at what you're trying to ask for, but this is generally how I do things within suds... Let me know if I'm on the right track.
Thanks, mag
On Mon, Oct 8, 2012 at 7:15 AM, Greg Lindstrom gslindstrom@gmail.comwrote:
Good Morning, Everyone -
I am working on using suds to generate a request for an existing service and have a structure that needs to look like the following:
<search_paramaeters> <search_parameter name='shoesize'>10.5</search_parameter> <search_parameter name='hatsize'>11 5/8</search_parameter> <search_parameter name='inseam'>32</search_parameter> </search_parameters>
How do I get suds to construct that (or, is it a funciton of the request object)?
Thanks for your help, --greg
suds mailing list suds@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/suds