note 83915 rejected from function.soap-soapclient-construct by mgf

From: Date: Wed, 18 Jun 2008 21:53:42 +0000
Subject: note 83915 rejected from function.soap-soapclient-construct by mgf
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140572@lists.php.net to get a copy of this message
Note Submitter: tech at webmetric dot co dot uk ---- I'm trying to work out how to get mutliple data sets to work, the wsdl requires... [..] <OrderItemDetailsList> <OrderItemDetail> <ProductID>string</ProductID> <QuantityOrdered>int</QuantityOrdered> <OrderItemDetail> <ProductID>string</ProductID> <QuantityOrdered>int</QuantityOrdered> </OrderItemDetail> </OrderItemDetailsList> [..] so normally i'd use something like $client = new SoapClient($wsdl,$options); $method = "DoSomething"; $params = new stdClass; $params->OrderItemDetailsList->OrderItemDetail->ProductID = 1; $params->OrderItemDetailsList->OrderItemDetail->QuantityOrdered = 2; but obviously when i add the second set of data, it just overwrites the first, i'm sure there must be away round this, but i just cant see it. D

« previous php.notes (#140572) next »