[Soap-Python] Using arrays with SUDS
azurIt
azurit at pobox.sk
Fri Sep 30 10:22:03 CEST 2011
yes but then you cannot do this in PHP:
$result = $sck->testf(new SoapParam(array(0 => "aaa", 1 => "bbb"), "testt"));
and have to do this:
$result = $sck->testf(new SoapParam("aaa", "testt"), new SoapParam("bbb", "testt"));
azur
______________________________________________________________
> Od: "Burak Arslan" <burak.arslan at arskom.com.tr>
> Komu: <soap at python.org>
> Dátum: 30.09.2011 08:55
> Predmet: Re: [Soap-Python] Using arrays with SUDS
>
>On 29.09.2011 18:42, azurIt wrote:
>> i was discussing this with suds's author and he adviced me (based on WSDL generated by rpclib) to pass array parameters like this:
>>
>> client.service.testf( {"string": ["ddd", "bbb"]} )
>>
>> and yes, it works! :)
>
>you won't have to do that if you use String(max_occurs='unbounded') --
>regular arrays will work.
>
>burak
>
>_______________________________________________
>Soap mailing list
>Soap at python.org
>http://mail.python.org/mailman/listinfo/soap
>
More information about the Soap
mailing list