Hi,<br> 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.<br>
Here is my outgoing SOAP and code.<br><br>wsdlFile = "<a href="http://webapi.allegro.pl/uploader.php?wsdl">http://webapi.allegro.pl/uploader.php?wsdl</a>"<br>server = WSDL.Proxy(wsdlFile)<br>server.doGetCountries(1, h23dk99sd)<br>
<br><br>*** Outgoing SOAP ******************************************************<br><?xml version="1.0" encoding="UTF-8"?><br><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" xmlns:SOAP-ENC="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" xmlns:xsi="<a href="http://www.w3.org/1999/XMLSchema-instance">http://www.w3.org/1999/XMLSchema-instance</a>" xmlns:SOAP-ENV="<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>" xmlns:xsd="<a href="http://www.w3.org/1999/XMLSchema">http://www.w3.org/1999/XMLSchema</a>"><br>
<SOAP-ENV:Body><br><ns1:doGetCountries xmlns:ns1="urn:AllegroWebApi" SOAP-ENC:root="1"><br><v1 xsi:type="xsd:int">1</v1><br><v2 xsi:type="xsd:string">h23dk99sd</v2><br>
</ns1:doGetCountries><br></SOAP-ENV:Body><br></SOAP-ENV:Envelope><br>************************************************************************<br><br>This is what the variable area should look like:<br><country-code xsi:type="xsd:int">1</country-code><br>
<webapi-key xsi:type="xsd:string">h23dk99sd</webapi-key><br><br>How do i accomplish this? (Wrapping it in a dictionary only sends the dictionary as v1)<br><br>Thank you!<br>