标签:
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‘
));
SOAP-ERROR: Encoding: string … is not a valid utf-8 string
标签:
原文地址:http://www.cnblogs.com/xihong2014/p/5725182.html