Re: [SOAP] multiple data sets

From: Date: Thu, 19 Jun 2008 12:48:55 +0000
Subject: Re: [SOAP] multiple data sets
References: 1 2  Groups: php.soap 
Request: Send a blank email to php-soap+get-2820@lists.php.net to get a copy of this message
maybe should you set OrderItemDetail as an array : $i = 0; $params->OrderItemDetailsList->OrderItemDetail[$i]->ProductID = '1';$params->OrderItemDetailsList->OrderItemDetail[$i]->QuantityOrdered = 2; $i++; $params->OrderItemDetailsList->OrderItemDetail[$i]->ProductID = '2';$params->OrderItemDetailsList->OrderItemDetail[$i]->QuantityOrdered = 2;
the problem i get this is that the xml comes out as <OrderItemDetailsList>> <OrderItemDetail>
       <1>
           <ProductID>string</ProductID>
           <QuantityOrdered>int</QuantityOrdered>
       </1>
<OrderItemDetail>
       <2>
           <ProductID>string</ProductID>
           <QuantityOrdered>int</QuantityOrdered>
       </2>
</OrderItemDetail> </OrderItemDetailsList i'm sure this must be a comon problem, but its driving me mad ;p(

« previous php.soap (#2820) next »