li sts wrote at 2011-9-26 12:47 -0400: >I'm trying to use SOAPpy to access a wsdl with a request that must be formed >like so: > > ><urn:GetUserPrivileges> > <urn:auth> > <urn:userId>admin</urn:userId> > <urn:password></urn:password> > <urn:hostname>localhost</urn:hostname> > </urn:auth> > <urn:privilegeType>TS_PRIVTYPE_USERTBL</urn:privilegeType> > <urn:objectId>1003</urn:objectId> > <urn:loginId></urn:loginId> ></urn:GetUserPrivileges> > >I can't seem to find the proper syntax to create this request, most of the >examples that I've been able to find are for things like a single parameter >(a zip code to get a temperature), and I haven't seen anything that >handles nested urns like this...
Are you forced to use "SOAPpy" (which I do not know much about)? If not, you may give "suds" a try. It is a very easy to use SOAP client with quite good adherence to the respective standards. If your WSDL calls for XML request documents like the above, "suds" would give you something similar (you would in addition get a SOAP envelope with namespace declarations -- as required by the standards). -- Dieter _______________________________________________ Soap mailing list [email protected] http://mail.python.org/mailman/listinfo/soap
