Note that there are some explanatory texts on larger screens.

plurals
  1. POSUDS: Pass Array Parameter in Client.service Method : GAE Python
    primarykey
    data
    text
    <p>In one of my application am consuming <a href="https://fedorahosted.org/suds/wiki/Documentation" rel="nofollow">SUDS</a> WSDL(SOAP) web services at GAE python.</p> <p>My <strong>Py Code</strong>:</p> <pre><code>url = 'http://203.215.51.43/Gateway/Execute?WSDL' client = Client(url) print client </code></pre> <p>So it printing at <strong>server console</strong></p> <pre><code>Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699-20100913 Service ( GatewayService ) tns="urn:fks:jcaps:gateway" Prefixes (2) ns0 = "http://fks.com/gtwy" ns1 = "urn:fks:jcaps:gateway:JavaException" Ports (1): (Execute) Methods (1): redeem(xs:string SessionId, xs:string TerminalId, xs:string StoreCod e, xs:string CashMemoNo, xs:string CashMemoDate, xs:double InvoiceAmount, xs:str ing TimeStamp, xs:string CashierId, xs:string MerchantId, ns0:SPCReqDtls SPCReqD tls, ns0:VoucherReqDtls[] VoucherReqDtls, ns0:CardReqDtls CardReqDtls, ) Types (1): ns1:JavaExceptionType </code></pre> <p>Actually am able pass <strong>string, double</strong> type values in redeem method but not an <strong>array/list</strong> type,</p> <pre><code>result = client.service.redeem(SessionId=result['SessionId'], StoreCode='4739', TerminalId='T1081', TimeStamp='01-01-2011 01:01:00.000') </code></pre> <p>But am not able to pass here <strong>VoucherReqDtls</strong> array</p> <p>the <strong>WSDL's XML</strong> code of this VoucherReqDtls is as below,</p> <pre><code> &lt;!--Zero or more repetitions:--&gt; &lt;gtwy:VoucherReqDtls&gt; &lt;gtwy:VoucherType&gt;GV&lt;/gtwy:VoucherType&gt; &lt;!--1 or more repetitions:--&gt; &lt;gtwy:VoucherReq&gt; &lt;gtwy:VoucherNo&gt;344234242&lt;/gtwy:VoucherNo&gt; &lt;/gtwy:VoucherReq&gt; &lt;gtwy:VoucherReq&gt; &lt;gtwy:VoucherNo&gt;675685858&lt;/gtwy:VoucherNo&gt; &lt;/gtwy:VoucherReq&gt; &lt;/gtwy:VoucherReqDtls&gt; </code></pre> <p>So how can i pass the <strong>VoucherReqDtls</strong> array/list in <strong>redeem</strong> method, here VoucherType is <strong>GV</strong> and count of <strong>VoucherNo</strong> could be more than one.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload