I'm using nusoap to connect to a soap webservice. The xml that the class sends to the service is constructed from an array, ie:
$params = array("param1" => "value1", "param2" => "value1");
$client->call('HelloWorld', $params, 'namespace', 'SOAPAction');
This works fine. A multidimensional array also constructs a nice nested xml message.
I encounter a problem when i need two tags with the same name:
<items>
<item>value 1</item>
<item>value 2</item>
</item>
$params = array("items" => array("item" => "value 1", "item" => "value 2"));
The second item in the array overwrites the first which results in:
<items>
<item>value 2</item>
</item>
How can achieve this?