In one of my application am consuming SUDS WSDL(SOAP) web services at GAE python.
My Py Code:
url = 'http://203.215.51.43/Gateway/Execute?WSDL'
client = Client(url)
print client
So it printing at server console
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
Actually am able pass string, double type values in redeem method but not an array/list type,
result = client.service.redeem(SessionId=result['SessionId'], StoreCode='4739', TerminalId='T1081', TimeStamp='01-01-2011 01:01:00.000')
But am not able to pass here VoucherReqDtls array
the WSDL's XML code of this VoucherReqDtls is as below,
<!--Zero or more repetitions:-->
<gtwy:VoucherReqDtls>
<gtwy:VoucherType>GV</gtwy:VoucherType>
<!--1 or more repetitions:-->
<gtwy:VoucherReq>
<gtwy:VoucherNo>344234242</gtwy:VoucherNo>
</gtwy:VoucherReq>
<gtwy:VoucherReq>
<gtwy:VoucherNo>675685858</gtwy:VoucherNo>
</gtwy:VoucherReq>
</gtwy:VoucherReqDtls>
So how can i pass the VoucherReqDtls array/list in redeem method, here VoucherType is GV and count of VoucherNo could be more than one.