Hi I am passing an array to a nusoap web service as such:
<?PHP
require_once('nusoap.php');
$param_customer_register=array(
'company'=>'testco',
'position'=>'manager',
'first_name'=>'dave',
'last_name'=>'coyle'
);
$soapclient = new soapclient('http://testserver/web_services/test_mdarray_server.php');
$data->_customer_register = $soapclient->call('get_customer_register',$param_customer_register);
?>
In the service function "get_customer_register" I have to specify each parameter individually as such.
<?php
require_once('nusoap.php');
$server = new soap_server;
$server->register('get_customer_register',
array('company' => 'xsd:string'),
array('position' => 'xsd:string'),
array('first_name' => 'xsd:string'),
array('last_name' => 'xsd:string')
);
function get_customer_register($company,$position,$first_name,$last_name) {
perform actions..........
}
The question is, How do I specify the parameters in the service if I send in a multi dimensional array, or numerous arrays.