PHP 利用SOAP调用webservice 传输汉字数据时,开发环境使用GBK模式,报上述错误,解决方法,在配置中使用如下语句:
$server = new SoapServer(null, array(
‘uri‘ =>‘http://soap/‘,
‘encoding‘=>‘ISO-8859-1‘
//‘location‘=>‘http://61.160.96.114:8000/inc/service/serverSoap.php‘
));
$soap = new SoapClient(null, array(
‘location‘=>‘http://61.160.96.114:8000/inc/service/serverSoap.php‘,
‘uri‘ =>‘http://soap/‘,
‘encoding‘=>‘ISO-8859-1‘
));
时间: 2024-10-16 01:56:14