KyleMac Posted March 31, 2007 Share Posted March 31, 2007 This is a problem that I have with the PayPal API using the PHP5 SOAP extension. Basically, I want to send the item information like below: <PaymentDetailsItem>Item1</PaymentDetailsItem> <PaymentDetailsItem>Item2</PaymentDetailsItem> but to build it you do array("PaymentDetailsItem" => "Item1", "PaymentDetailsItem" => "Item2" ) and these, of course, overwrite each other and you only get Array ( "PaymentDetailsItem" => "Item2" ) I think the solution may involve SoapVAR (http://uk.php.net/manual/en/function.soap-soapvar-construct.php) but can anyone with more experience help? Link to comment https://forums.phpfreaks.com/topic/45088-how-to-have-multiples-nodes-with-same-name-with-php5-soap-extension/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.