The client sends a request like this
Copy Code code as follows:
$request = Array (' Parameters00 ', ' parameters01 ');
At the request of the client you can set the data type of the parameter, you can put each parameter separately into an array, in the second position of the array to set the data type of the parameter, like this
Copy Code code as follows:
$request = Array (
Array (' Parameters00 ', ' string '),
Array (' Parameters01 ', ' Boolean '),
Array (' parameters02 ', ' struct '),
Array (' Parameters03 ', ' int '),
);
The server-side return response has a hard requirement to format the array and must have only one primary array in the response array, similar to this:
Copy Code code as follows:
$response = Array (
Array (parameters00 => array (' para00 ', ' string '),
Parameters01 => Array (' para01 ', ' struct '),
PARAMETERS02 => Array (' Para02 ', ' Boolean '),
), ' struct ');
If you want to use associative arrays you need to pay attention to the type-setting problems of associative arrays, like this:
Copy Code code as follows:
$request = Array (
Array
' Parameters00 ' => Array (Array (' Paraoo ' => ' value '), ' struct '),
' Parameters01 ' => array (' Para01 ', ' string '),
), ' struct '
);