<div class="gmail_quote">hi, all:&nbsp;</div><div class="gmail_quote"><br></div><div class="gmail_quote">is someone familiar to suds.</div><div class="gmail_quote"><br></div><div class="gmail_quote">I&#39;m making a webservice client, and meet some problems.</div>
<div class="gmail_quote">I try to ask helps from&nbsp;<a href="mailto:soap@python.org">soap@python.org</a>,&nbsp;<a href="mailto:lists@libertylost.org">lists@libertylost.org</a>,&nbsp;<a href="mailto:python-tornado@googlegroups.com">python-tornado@googlegroups.com</a>, while, the problem still exist.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><div><br></div><div>part 1: how do you think the xml in the url:&nbsp;</div><div><span class="Apple-style-span" style="color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 15px; background-color: rgb(255, 255, 255); "><br>
</span></div><div><span class="Apple-style-span" style="color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 15px; background-color: rgb(255, 255, 255); ">&quot;<a href="http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl" target="_blank" style="color: rgb(0, 0, 204); ">http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl</a>&quot;</span></div>
<div><br></div><div><span style="font-family:monospace;font-size:13px"><div>
<span>&lt;complexType<span>&nbsp;<span>name</span>=&quot;<span>ArrayOf_soapenc_string</span>&quot;</span>&gt;</span></div>
<div style="margin-left:1em"><span></span><div><div><div><span></span><span>&lt;complexContent&gt;</span></div>
<div style="margin-left:1em"><span></span><div><div><div><span></span><span>&lt;restriction<span>&nbsp;<span>base</span>=&quot;<span>soapenc:Array</span>&quot;</span>&gt;</span></div>
<div style="margin-left:1em"><span></span><div><span>&lt;attribute<span>&nbsp;<span>ref</span>=&quot;<span>soapenc:arrayType</span>&quot;</span><span>&nbsp;<span>wsdl:arrayType</span>=&quot;<span>xsd:string[]</span>&quot;</span>/&gt;</span></div>

<span></span></div><div><span>&lt;/restriction&gt;</span></div></div></div><span></span></div><div><span>&lt;/complexContent&gt;</span></div>
</div></div><span></span></div><div><span>&lt;/complexType&gt;</span></div><div><span><br></span></div></span>part 2: in fact, the server is made by Axis, which is a web service framework in Java.</div>
<div>Before i develop the client, there already have a java client for the server.</div><div>the code &nbsp;are below:</div><div><br></div><div><div>if (temp.length % MTINFO_LENGTH != 0) {</div><div><span style="white-space:pre-wrap">                                        </span><span style="background-color:rgb(255,204,51)">String[] remainBlock = new String[temp.length - jMark];</span></div>

<div><span style="white-space:pre-wrap">                                        </span>for (int i = 0; i &lt; remainBlock.length; i++) {</div><div><span style="white-space:pre-wrap">                                                </span>remainBlock[i] = temp[jMark];</div>
<div><span style="white-space:pre-wrap">                                                </span>jMark++;</div><div><span style="white-space:pre-wrap">                                        </span>}</div><div><br></div><div><span style="background-color:rgb(255,204,51)">mark = lnxss.sendMt(remainBlock);</span></div>

</div><div><br></div><div>After read the code, &nbsp;we know that the the inparams of sendMt is String[].</div><div>In fact, the purpose of senMt() is to send some shotmessage to a mobile phone. you can find remobile in the parameters.</div>

<div><br></div><div>part 3:&nbsp;Besides, the server has some check, which i have add it in the newest code.</div><div><br></div><div>servicecode:&nbsp;PABB4BEIJING</div><div>passwd:&nbsp;QWERTPABB</div><div>namespace:&nbsp;<span style="color:rgb(26,26,166);font-family:monospace;font-size:14px">service.global.v1_0.wsdl.protocol.xxt (you can see it in the url)</span></div>

<div><span style="color:rgb(26,26,166);font-family:monospace;font-size:14px"><br></span></div><div>I have tried &nbsp;to add the service code and passwd in the code.</div><div>&nbsp;while, &nbsp;what &nbsp;still puzzled me is that in suds, how to add the namespace to the client.&nbsp;</div>

<div>how to use the ArrayOf_soapen_string is a problem. in my code, i provide a list which contains some string. in my view, i should provide a object like your code,&nbsp;</div><div>aoss = client.factory.create(&#39;ArrayOf_soapen_string&#39;)</div>

<div>then, what should i do next? &nbsp;how to assign a value for the parameter of aoss?&nbsp;</div><div><br></div><div>part 4:&nbsp;</div><div># the newest code :</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><div>
import suds</div><div><div>def test_sms4():</div><div>&nbsp; &nbsp; import logging</div><div>&nbsp; &nbsp; logging.basicConfig(level=logging.ERROR)</div><div class="im" style="color: rgb(80, 0, 80); "><div>&nbsp; &nbsp; url = &quot;<a href="http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl" target="_blank" style="color: rgb(0, 0, 204); ">http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl</a>&quot;</div>
</div><div>&nbsp; &nbsp; from suds.transport.https import HttpAuthenticated</div><div>&nbsp; &nbsp; credentials = dict(username=&#39;PABB4BEIJING&#39;, password=&#39;QWERTPABB&#39;)</div><div>&nbsp; &nbsp; t = HttpAuthenticated(**credentials)</div><div>
&nbsp; &nbsp; client = suds.client.Client(url,transport=t,cache=None,xstq=False,faults=False)</div><div>&nbsp; &nbsp; #client = suds.client.Client(url,cache=None,xstq=False)</div><div class="im" style="color: rgb(80, 0, 80); "><div>&nbsp; &nbsp; aoss = client.factory.create(&#39;ArrayOf_soapenc_string&#39;)</div>
<div>&nbsp; &nbsp; #client.set_options(namespace=&#39;service.global.v1_0.wsdl.protocol.xxt&#39;)</div><div>&nbsp; &nbsp;&nbsp;print &#39;client&#39;, client</div><div>&nbsp; &nbsp; item1 = &quot;{&#39;msgid&#39;:&#39;1234567890&#39;,&#39;bizcode&#39;:&#39;15140237310&#39;,&#39;serviceId&#39;:&#39;1234567&#39;,&#39;recomobile&#39;:&#39;15110791945&#39;,&#39;sendtime&#39;:&#39;1322573860&#39;,&#39;content&#39;:&#39;hi, this is just a test. you can ignore it. --jiaxiaolei&#39;}&quot;</div>
<div>&nbsp; &nbsp; item2 = &quot;{&#39;msgid&#39;:&#39;1234567891&#39;,&#39;bizcode&#39;:&#39;15140237310&#39;,&#39;serviceId&#39;:&#39;1234567&#39;,&#39;recomobile&#39;:&#39;15110791946&#39;,&#39;sendtime&#39;:&#39;1322573870&#39;,&#39;content&#39;:&#39;hi, this is just a test. you can ignore it. --jiaxiaolei&#39;}&quot;</div>
<div>&nbsp; &nbsp; req = [item1, item2]</div><div><br></div><div>&nbsp; &nbsp; #client.service.sendMt(aoss)</div><div>&nbsp; &nbsp; output = client.service.sendMt(mtinfo=req)</div><div>&nbsp; &nbsp; print &#39;output&#39;, output</div><div><br></div></div></div>
</span></div><div><br></div><div><br></div><div># output:</div><div><br></div><div><div>w_jiaxiaolei@drone-009:~/tornadows-0.9.1/demos$ python suds_client.py</div><div class="im"><div>client</div><div>
Suds ( <a href="https://fedorahosted.org/suds/" target="_blank">https://fedorahosted.org/suds/</a> ) &nbsp;version: 0.3.7 GA &nbsp;build: R580-20091016</div><div><br></div><div>Service ( LNXxtSyncServiceService ) tns=&quot;service.global.v1_0.wsdl.protocol.xxt&quot;</div>

<div>&nbsp; &nbsp;Prefixes (3)</div><div>&nbsp; &nbsp; &nbsp; ns0 = &quot;<a href="http://common.v1_0.obj.protocol.xxt" target="_blank">http://common.v1_0.obj.protocol.xxt</a>&quot;</div><div>&nbsp; &nbsp; &nbsp; ns1 = &quot;<a href="http://schemas.xmlsoap.org/soap/encoding/" target="_blank">http://schemas.xmlsoap.org/soap/encoding/</a>&quot;</div>

<div>&nbsp; &nbsp; &nbsp; ns2 = &quot;service.global.v1_0.wsdl.protocol.xxt&quot;</div><div>&nbsp; &nbsp;Ports (1):</div><div>&nbsp; &nbsp; &nbsp; (LNXxtSyncService)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Methods (5):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sendMo(ArrayOf_soapenc_string moInfo, )</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sendMt(ArrayOf_soapenc_string mtInfo, )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; syncCorp(ArrayOf_tns2_GroupOrderInfo orderInfo, )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; syncResponseRpt(ArrayOf_soapenc_string rpt, )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; syncStaff(ArrayOf_tns2_UserOrderInfo orderInfo, )</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Types (54):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ns1:Array</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ArrayOf_soapenc_string</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ArrayOf_tns2_GroupOrderInfo</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ArrayOf_tns2_UserOrderInfo</div></div></div><div>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ...</div>
<div><br></div><div><div>ERROR:suds.client:&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div>&lt;SOAP-ENV:Envelope xmlns:ns0=&quot;service.global.v1_0.wsdl.protocol.xxt&quot; xmlns:SOAP-ENC=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/" target="_blank">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xmlns:SOAP-ENV=&quot;<a href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>&quot; SOAP-ENV:encodingStyle=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/" target="_blank">http://schemas.xmlsoap.org/soap/encoding/</a>&quot;&gt;</div>

<div>&nbsp; &nbsp;&lt;SOAP-ENV:Header/&gt;</div><div>&nbsp; &nbsp;&lt;SOAP-ENV:Body&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;ns0:sendMt&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;mtInfo xsi:type=&quot;ArrayOf_soapenc_string&quot;/&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/ns0:sendMt&gt;</div>

<div>&nbsp; &nbsp;&lt;/SOAP-ENV:Body&gt;</div><div>&lt;/SOAP-ENV:Envelope&gt;</div><div>output (500, (detail){</div><div>&nbsp; &nbsp;fault =</div><div>&nbsp; &nbsp; &nbsp; (fault){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_href = &quot;#id0&quot;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp;exceptionName = &quot;xxt.protocol.obj.v1_0.common.ServiceException&quot;</div>

<div>&nbsp; &nbsp;hostname = &quot;ln_xxt_mh01&quot;</div><div>&nbsp;})</div></div><div><br></div><div><br></div><div>-- jiaxiaolei</div><div><div></div><div class="h5"><div><br></div><div><br></div><div>&nbsp;</div><div><br></div><div><br>
</div><br><br><div class="gmail_quote">
2011/11/29 xin zou <span dir="ltr">&lt;<a href="mailto:joy2everyone.z@gmail.com" target="_blank">joy2everyone.z@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Sorry that I used many &quot;should&quot; as my subjective judgment, you can try to test with the closed correct args of &quot;<b>array_soapenc_str</b>&quot; refer the related document.<br><br>Thanks,<br>Xin<br><br><div class="gmail_quote">


在 2011年11月29日 下午8:20,xin zou <span dir="ltr">&lt;<a href="mailto:joy2everyone.z@gmail.com" target="_blank">joy2everyone.z@gmail.com</a>&gt;</span>写道:<div><div></div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi,<br><br>Here are my testing code with your supplied service:<br><br>===============================================================<br>from suds.client import Client<br>import logging<br><br>#logging.basicConfig(level=logging.DEBUG)<br>



<br>url = &#39;<a href="http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl" target="_blank">http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl</a>&#39;<br>client = Client(url)<br>


<br>array_soapenc_str = client.factory.create(&#39;ArrayOf_soapenc_string&#39;)<br>
array_soapenc_str._arrayType = &#39;test&#39;<br>array_soapenc_str._offset = &#39;1&#39;<br>array_soapenc_str._id = &#39;1&#39;<br>array_soapenc_str._href = &quot;<a href="http://www.test.com" target="_blank">http://www.test.com</a>&quot;<br>



array_soapenc_str._arrayType = &#39;test2&#39;<br><br>print client.service.sendMt(array_soapenc_str)<br><br>===============================================================<br><br>My occurred error was &quot; WebFault: Server raised fault: &#39;&#39; &quot;(you can remove the DEBUG comment for more information), I think it should be my testing args were incorrect. You should be familiar with these request args, as well as you should have the corresponding document of this web service (e.g. what is the purpose of the &quot;sendMt&quot; operation), right? Hope these are helpful for you. Good luck!<br>



<br>BTW, the more detailed document of the released web service, the better for the client :)<br><br>Thanks,<br>Xin<div><div><br><br><br><br><div class="gmail_quote">2011/11/29 贾晓磊 <span dir="ltr">&lt;<a href="mailto:jiaxiaolei19871112@gmail.com" target="_blank">jiaxiaolei19871112@gmail.com</a>&gt;</span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi, all:</div><div><br></div><div>First of all, I will admire I am a novice to web service. I read someting about webservie about tornado webservice and find thant nearly all the client is developed by suds.&nbsp;</div>



<div>
<br></div><div>What I need now is to invoke a method &nbsp;sendMt provided by the web service server(prehaps the&nbsp;server is made by java language using a framwork named Axis).</div><div><br></div><div>I try to invoke the sendMt method provided by the server, then failded. There are the tests as&nbsp;follows:</div>




<div><br></div><div>you can see the whole wsdl file in&nbsp;&quot;<a href="http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl" target="_blank">http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl</a>&quot;, or read in &nbsp;the attachment(when i use suds, in /tmp/suds/* i find them) .</div>




<div><br></div><div>method 1:&nbsp;</div><div><br></div><div>import suds</div><div><br></div><div>def test_sms():</div><div>&nbsp; &nbsp; #TODO: it&#39;s failed</div><div>&nbsp; &nbsp; url = &quot;<a href="http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl" target="_blank">http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl</a>&quot;</div>




<div>&nbsp; &nbsp; #client = suds.client.Client(url,faults=False)</div><div>&nbsp; &nbsp; client = suds.client.Client(url)</div><div>&nbsp; &nbsp; print &#39;client&#39;, client</div><div>&nbsp; &nbsp; a = [&#39;jia&#39;,&#39;xiao&#39;]</div><div>&nbsp; &nbsp; output = client.service.sendMt(a)</div>




<div>&nbsp; &nbsp; print &#39;output&#39;, output</div><div><br></div><div><br></div><div># the output:</div><div><br></div><div>client</div><div>Suds ( <a href="https://fedorahosted.org/suds/" target="_blank">https://fedorahosted.org/suds/</a> ) &nbsp;version: 0.3.7 GA &nbsp;build: R580-20091016</div>




<div><br></div><div>Service ( LNXxtSyncServiceService ) tns=&quot;service.global.v1_0.wsdl.protocol.xxt&quot;</div><div>&nbsp; &nbsp;Prefixes (3)</div><div>&nbsp; &nbsp; &nbsp; ns0 = &quot;<a href="http://common.v1_0.obj.protocol.xxt" target="_blank">http://common.v1_0.obj.protocol.xxt</a>&quot;</div>




<div>&nbsp; &nbsp; &nbsp; ns1 = &quot;<a href="http://schemas.xmlsoap.org/soap/encoding/" target="_blank">http://schemas.xmlsoap.org/soap/encoding/</a>&quot;</div><div>&nbsp; &nbsp; &nbsp; ns2 = &quot;service.global.v1_0.wsdl.protocol.xxt&quot;</div>



<div>&nbsp; &nbsp;Ports (1):</div>
<div>&nbsp; &nbsp; &nbsp; (LNXxtSyncService)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Methods (5):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sendMo(ArrayOf_soapenc_string moInfo, )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sendMt(ArrayOf_soapenc_string mtInfo, )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; syncCorp(ArrayOf_tns2_GroupOrderInfo orderInfo, )</div>




<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; syncResponseRpt(ArrayOf_soapenc_string rpt, )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; syncStaff(ArrayOf_tns2_UserOrderInfo orderInfo, )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Types (54):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ns1:Array</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ArrayOf_soapenc_string</div>




<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ArrayOf_tns2_GroupOrderInfo</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ArrayOf_tns2_UserOrderInfo</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ns1:ENTITIES</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ns1:ENTITY</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ...</div><div>No handlers could be found for logger &quot;suds.client&quot;</div>




<div>Traceback (most recent call last):</div><div>&nbsp; File &quot;suds_client.py&quot;, line 124, in &lt;module&gt;</div><div>&nbsp; &nbsp; test_sms2()</div><div>&nbsp; File &quot;suds_client.py&quot;, line 99, in test_sms2</div><div>&nbsp; &nbsp; output = client.service.sendMt(a)</div>




<div>&nbsp; File &quot;/usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/client.py&quot;, line 535,&nbsp;</div><div><br></div><div>in __call__</div><div>&nbsp; &nbsp; return client.invoke(args, kwargs)</div><div>&nbsp; File &quot;/usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/client.py&quot;, line 595,&nbsp;</div>




<div><br></div><div>in invoke</div><div>&nbsp; &nbsp; result = self.send(msg)</div><div>&nbsp; File &quot;/usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/client.py&quot;, line 630,&nbsp;</div><div><br></div><div>in send</div>




<div>&nbsp; &nbsp; result = self.failed(binding, e)</div><div>&nbsp; File &quot;/usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/client.py&quot;, line 681,&nbsp;</div><div><br></div><div>in failed</div><div>&nbsp; &nbsp; r, p = binding.get_fault(reply)</div>




<div>&nbsp; File &quot;/usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/bindings/binding.py&quot;,&nbsp;</div><div><br></div><div>line 235, in get_fault</div><div>&nbsp; &nbsp; raise WebFault(p, faultroot)</div><div>suds.WebFault: Server raised fault: &#39;No such operation &#39;sendMt&#39;&#39;</div>




<div><br></div><div><br></div><div>#Note:&nbsp;</div><div>1: the url &quot;<a href="http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl" target="_blank">http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl</a>&quot; is&nbsp;</div>




<div><br></div><div>develped in Internet, anyone can use it.</div><div>2: in my view, the server is made by java Axis, and the inparams of sendmt is&nbsp;</div><div><br></div><div>ArrayOf_soapenc_string(In java, it means a array of String, in python, it means a list whose&nbsp;</div>




<div><br></div><div>items are string).</div><div>3: the problem has puzzled me for nearly a week, please someone can give me some points.</div><div><br></div><div><br></div><div># besides the suds, i try other methods as follows, whlie, still failed.</div>




<div><br></div><div>method 2:</div><div><br></div><div>from SOAPpy import SOAPProxy</div><div>def test_sms():</div><div>&nbsp; &nbsp; &quot;&quot;&quot;test for ln sms java webservice</div><div>&nbsp; &nbsp; &quot;&quot;&quot;</div><div>&nbsp; &nbsp; #TODO:invoke sms is stil failed</div>




<div>&nbsp; &nbsp; url = &quot;<a href="http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService" target="_blank">http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService</a>&quot;</div><div>&nbsp; &nbsp; server = SOAPProxy(url)</div>




<div>&nbsp; &nbsp; args = [&#39;jia&#39;,&#39;xiao&#39;]</div><div>&nbsp; &nbsp; print server.sendMt(args)</div><div><br></div><div><br></div><div># output:</div><div>w_jiaxiaolei@drone-009:~/tornadows-0.9.1/demos$ python &nbsp;soappy_client.py</div>




<div>Traceback (most recent call last):</div><div>&nbsp; File &quot;soappy_client.py&quot;, line 59, in &lt;module&gt;</div><div>&nbsp; &nbsp; test_sms()</div><div>&nbsp; File &quot;soappy_client.py&quot;, line 31, in test_sms</div><div>&nbsp; &nbsp; print server.sendMt(args)</div>




<div>&nbsp; File &quot;/usr/lib/pymodules/python2.6/SOAPpy/Client.py&quot;, line 470, in __call__</div><div>&nbsp; &nbsp; return self.__r_call(*args, **kw)</div><div>&nbsp; File &quot;/usr/lib/pymodules/python2.6/SOAPpy/Client.py&quot;, line 492, in __r_call</div>




<div>&nbsp; &nbsp; self.__hd, self.__ma)</div><div>&nbsp; File &quot;/usr/lib/pymodules/python2.6/SOAPpy/Client.py&quot;, line 406, in __call</div><div>&nbsp; &nbsp; raise p</div><div>SOAPpy.Types.faultType: &lt;Fault soapenv:Server.generalException: : &lt;SOAPpy.Types.structType&nbsp;</div>




<div><br></div><div>detail at 26709888&gt;: {&#39;fault&#39;: &lt;SOAPpy.Types.structType multiRef at 26707800&gt;: {&#39;text&#39;:&nbsp;</div><div><br></div><div>&#39;SoapHeader is null&#39;, &#39;messageId&#39;: &#39;SEV_0003&#39;}, &#39;exceptionName&#39;:&nbsp;</div>




<div><br></div><div>&#39;xxt.protocol.obj.v1_0.common.ServiceException&#39;, &#39;hostname&#39;: &#39;ln_xxt_mh01&#39;}&gt;</div><div><br></div><div><br></div><div>method 3:</div><div><br></div><div>from SOAPpy import WSDL</div>




<div><br></div><div>def test_sms():</div><div>&nbsp; &nbsp; &quot;&quot;&quot;for sms</div><div>&nbsp; &nbsp; &quot;&quot;&quot;</div><div>&nbsp; &nbsp; &nbsp;url = &quot;<a href="http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl" target="_blank">http://211.137.45.104:9006/LnXxtCpInterface/services/LNXxtSyncService?wsdl</a>&quot;</div>




<div>&nbsp; &nbsp; server = WSDL.Proxy(url)</div><div>&nbsp; &nbsp; #print &#39;methods:&#39;,server.methods.keys()</div><div>&nbsp; &nbsp; #print &#39;input type:&#39;,server.methods[&#39;sendMt&#39;].inparams[0].type</div><div>&nbsp; &nbsp; #print &#39;input name:&#39;,server.methods[&#39;sendMt&#39;].inparams[0].name</div>




<div>&nbsp; &nbsp; #print &#39;output type:&#39;,server.methods[&#39;sendMt&#39;].outparams[0].type</div><div>&nbsp; &nbsp; #print &#39;output name:&#39;,server.methods[&#39;sendMt&#39;].outparams[0].name</div><div>&nbsp; &nbsp; a = [&#39;jia&#39;,&#39;xiao&#39;]</div>




<div>&nbsp; &nbsp; results=server.sendMt(a)</div><div>&nbsp; &nbsp; print results</div><div><br></div><div># output:</div><div>w_jiaxiaolei@drone-009:~/tornadows-0.9.1/demos$ python &nbsp;wsdl_client.py</div><div>/usr/lib/pymodules/python2.6/SOAPpy/wstools/XMLSchema.py:2871: DeprecationWarning:&nbsp;</div>




<div><br></div><div>object.__init__() takes no parameters</div><div>&nbsp; tuple.__init__(self, args)</div><div>Traceback (most recent call last):</div><div>&nbsp; File &quot;wsdl_client.py&quot;, line 48, in &lt;module&gt;</div><div>




&nbsp; &nbsp; test_sms()</div><div>&nbsp; File &quot;wsdl_client.py&quot;, line 41, in test_sms</div><div>&nbsp; &nbsp; results=server.sendMt(a)</div><div>&nbsp; File &quot;/usr/lib/pymodules/python2.6/SOAPpy/Client.py&quot;, line 470, in __call__</div>




<div>&nbsp; &nbsp; return self.__r_call(*args, **kw)</div><div>&nbsp; File &quot;/usr/lib/pymodules/python2.6/SOAPpy/Client.py&quot;, line 492, in __r_call</div><div>&nbsp; &nbsp; self.__hd, self.__ma)</div><div>&nbsp; File &quot;/usr/lib/pymodules/python2.6/SOAPpy/Client.py&quot;, line 406, in __call</div>




<div>&nbsp; &nbsp; raise p</div><div>SOAPpy.Types.faultType: &lt;Fault soapenv:Server.generalException: : &lt;SOAPpy.Types.structType&nbsp;</div><div><br></div><div>detail at 31753352&gt;: {&#39;fault&#39;: &lt;SOAPpy.Types.structType multiRef at 31753280&gt;: {&#39;text&#39;:&nbsp;</div>




<div><br></div><div>&#39;SoapHeader is null&#39;, &#39;messageId&#39;: &#39;SEV_0003&#39;}, &#39;exceptionName&#39;:&nbsp;</div><div><br></div><div>&#39;xxt.protocol.obj.v1_0.common.ServiceException&#39;, &#39;hostname&#39;: &#39;ln_xxt_mh01&#39;}&gt;</div>





</blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><font color="#888888">-- <br>NAME: 贾晓磊/Jia Xiaolei<div>MOBILE: 13011292217</div><div>QQ: 281304051</div><div>MICRO-BLOG:&nbsp;&nbsp;<a href="http://weibo.com/2183890715" target="_blank">http://weibo.com/2183890715</a></div>

<div>GMAIL<a href="mailto:gmail%3Ajiaxiaolei19871112@gmail.com" target="_blank">: jiaxiaolei19871112@gmail.com</a></div><br>
</font></div><br><br clear="all"><div><br></div>-- <br>NAME: 贾晓磊/Jia Xiaolei<div>MOBILE: 13011292217</div><div>QQ: 281304051</div><div>MICRO-BLOG:&nbsp;&nbsp;<a href="http://weibo.com/2183890715" target="_blank">http://weibo.com/2183890715</a></div>
<div>GMAIL<a href="mailto:gmail%3Ajiaxiaolei19871112@gmail.com" target="_blank">: jiaxiaolei19871112@gmail.com</a></div><br>