Hi, I need to be able to send variable names when sending requests to a SOAP server. Currently SOAPpy sends my variables automatically named as v1, v2, v3. The server requires they have a name varNameA, varNameB etc. Here is my outgoing SOAP and code.
wsdlFile = "http://webapi.allegro.pl/uploader.php?wsdl" server = WSDL.Proxy(wsdlFile) server.doGetCountries(1, h23dk99sd) *** Outgoing SOAP ****************************************************** <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi=" http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <ns1:doGetCountries xmlns:ns1="urn:AllegroWebApi" SOAP-ENC:root="1"> <v1 xsi:type="xsd:int">1</v1> <v2 xsi:type="xsd:string">h23dk99sd</v2> </ns1:doGetCountries> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ************************************************************************ This is what the variable area should look like: <country-code xsi:type="xsd:int">1</country-code> <webapi-key xsi:type="xsd:string">h23dk99sd</webapi-key> How do i accomplish this? (Wrapping it in a dictionary only sends the dictionary as v1) Thank you!
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python