Re: multiple data sets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux