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 '
);
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.