note 83915 added to function.soap-soapclient-construct

From: Date: Wed, 18 Jun 2008 11:08:06 +0000
Subject: note 83915 added to function.soap-soapclient-construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-140562@lists.php.net to get a copy of this message
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 ---- Server IP: 92.48.100.16 Probable Submitter: 80.229.204.211 ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-construct.php Edit -- https://master.php.net/note/edit/83915 Del: integrated -- https://master.php.net/note/delete/83915/integrated Del: useless -- https://master.php.net/note/delete/83915/useless Del: bad code -- https://master.php.net/note/delete/83915/bad+code Del: spam -- https://master.php.net/note/delete/83915/spam Del: non-english -- https://master.php.net/note/delete/83915/non-english Del: in docs -- https://master.php.net/note/delete/83915/in+docs Del: other reasons-- https://master.php.net/note/delete/83915 Reject -- https://master.php.net/note/reject/83915 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140562) next »