In fact, friends who have turned on the debugging function, I believe they will find that $client->response returns the correct result, why $result = $client->call($action, array('parameters' => $param)); But it's garbled code?
After studying the NuSOAP code, we will find that when xml_encoding is set to UTF-8, NuSOAP will detect the setting of decode_utf8. If it is true, the utf8_decode function in PHP will be executed, and NuSOAP defaults to true, so we need Settings:
The code is as follows
|
Copy code | ||||
http: //www.bkjia.com/PHPjc/444726.html