如果我没有摆脱这个错误。我该如何解决这个错误。
$kPSServiceServis = new KPSServiceServis($wsdl);
// sample call for KPSServiceServis::ServisUTCZamani()
if($kPSServiceServis->ServisUTCZamani(new KPSTypeServisUTCZamani(/*** update parameters list ***/)))
print_r($kPSServiceServis->getResult());
else
print_r($kPSServiceServis->getLastError());
错误消息(为便于阅读而包装):
Array ( [KPSServiceServis::ServisUTCZamani] => SoapFault Object (
[message:protected] => Cannot process the message because the content type
'text/xml; charset=utf-8' was not the expected type
'application/soap+xml; charset=utf-8'.
[string:Exception:private] => ......
] => rate:KPSWsdlClass:private] =>
[internArrayToIterateIsArray:KPSWsdlClass:private] =>
[internArrayToIterateOffset:KPSWsdlClass:private] => ) ) ) )
[previous:Exception:private] => [faultstring] =>
Cannot process the message because the content type 'text/xml; charset=utf-8'
was not the expected type 'application/soap+xml; charset=utf-8'.
[faultcode] => HTTP ) )