Jump to content

How to have multiples nodes with same name with PHP5 SOAP extension?


KyleMac

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.