0

このエラーを取り除かなかった場合。このエラーを修正するにはどうすればよいですか。

  $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 ) )
4

1 に答える 1