我想访问一些网络服务。我像这样使用PHP SoapClient:
$user_key = "myKey";
$service = new SoapClient('https://myadress.xsd',array(
'trace' => 1,
'exceptions' => true,
"soap_version" => SOAP_1_2
));
$sid = $service->Zaloguj($user_key);`
之后我得到Exception“SoapFault:Internal Server Error”
当我打电话
$service->__getFunctions()
我得到名单
ZalogujResponse Zaloguj(Zaloguj $parameters)
当我更改参数
时"soap_version"=>SOAP_1_1
我收到其他错误:
Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'multipart/related; type="application/xop+xm
我尝试了许多组合,如:
$params = new stdClass();
$params->key = $user_key;
$sid = $service->Zaloguj($params);
我得到同样的错误
"SoapFault: Internal Server Error"