Hi,
I want to creat a message similier to (
associative-array-as-argument-t2085.html?highlight=array),
<phonebook>
<person>
<name>name1</name>
<phone>phone1</phone>
</person>
<person>
<name>name2</name>
<phone>phone2</phone>
</person>
...
</phonebook> |
How do I create the param list so NuSOAP will generate the relevant XML?
Below is the sample array, but as you probably know♦ this will generate, the XML code but with only the last person. So I would like to know does NuSOAP does cater for this if so how? Any help is greatly appreciated.
$params = array(
'phonebook' => array(
'person' => array(
'name' => 'name1',
'phone' => 'phone1',
),
'person' => array(
'name' => 'name2',
'phone' => 'ph♦one2',
)
)
);
|