hi guys:
new to suds and SOAP and WSDL and this list ...
have been patiently trying to figure out (what I think is) a fairly simple connection to an NSN IN platform ... tried lurking around on irc to see if someone could help too ...
have a PDF from NSN that states they want the following request, WSDL is attached
...snip... spi:subscriber spi:attributes <spi:attribute spi:name="IMSI" xsi:type="spi:singlevalue"> spi:identifyingtrue</spi:identifying> <spi:value xsi:type="xsd:string">66633000026</spi:value> </spi:attribute> </spi:attributes> </spi:subscriber>
i've got the following bit of code in suds
request = client.factory.create('queryServicesRequest') request.subscriber.attributes.attribute = 'IMSI' request.subscriber.attributes.attribute = '412012202319012' print client.service.querySubscribedServices(request)
which results in...
ns0:subscriber ns0:attributes ns0:attribute412012202319012</ns0:attribute> </ns0:attributes> </ns0:subscriber>
my question is ... how do I get
<spi:attribute spi:name="IMSI" xsi:type="spi:singlevalue"> spi:identifyingtrue</spi:identifying> <spi:value xsi:type="xsd:string">66633000026</spi:value>
there is nothing in the WSDL that has a type=IMSI or anything like that if I use a {'IMSI':'123123123123'} it results in an error...
please advise, i feel like i'm > < close to getting my first SOAP connection working ...