<br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 3:48 PM, Landreville <span dir="ltr">&lt;<a href="mailto:landreville@deadtreepages.com">landreville@deadtreepages.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, Mar 2, 2010 at 5:20 AM, Kamil Wasilewski &lt;<a href="mailto:kamil@lucem.pl">kamil@lucem.pl</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;  I need to be able to send variable names when sending requests to a SOAP<br>
&gt; server. Currently SOAPpy sends my variables automatically named as v1, v2,<br>
&gt; v3. The server requires they have a name varNameA, varNameB etc.<br>
&gt; Here is my outgoing SOAP and code.<br>
&gt;<br>
<br>
</div>I played around with SOAPpy a couple months ago; I&#39;m fairly sure that<br>
it does order-based parameters by default and I don&#39;t remember finding<br>
a way to use named parameters.<br>
<br>
There is another SOAP library called ZSI that might have that (it&#39;s<br>
not integrated with Twisted though).<br>
<br></blockquote><div><br>Yes it does order them correctly if you just call<br>server.doFunction(param1, param2), but assignes them names v1, v2..<br>But i found a way to name (and order) them <br> <a href="http://ungil.com/remedy/webservices.html">http://ungil.com/remedy/webservices.html</a><br>
<br># Define the order of args: needed for this service<br>server.config.argsOrdering = {&#39;doFunction&#39;: (&#39;id&#39;, &#39;code&#39;) }<br>response = server.doFunction(code=sc, id=gi )<br><br>Notice however that i need to name my parameters with a &#39;-&#39; in the middle: country-code, webapi-key and the above naming method gives me errors. if the variables were country_code it would be a different story.<br>
<br>Any idea how to get around this?<br>Thanks<br> </div></div>