SOAP-ERROR:解析WSDL:错误消息'tns:GetWebAuthByKeyFaultDetail'必须只有一个部分

时间:2018-03-09 07:15:48

标签: php xml soap

我在SOAP客户端中运行SOAP API时遇到此错误:

  

SOAP-ERROR:解析WSDL:错误消息'tns:GetWebAuthByKeyFaultDetail'必须有一个部分

这是我的代码:

$xml = 'request';

$wsdl = "https://wsdl?wsdl";

$local_cert = "location";

$options = array(
  'uri'=>$local_cert,
  'style'=>SOAP_RPC,
  'use'=>SOAP_ENCODED,
  'soap_version'=>SOAP_1_1,
  'cache_wsdl'=>WSDL_CACHE_NONE,
  'connection_timeout'=>15,
  'trace'=>true,
  'encoding'=>'UTF-8',
  'exceptions'=>true,
);
try {
    $soap = new SoapClient($wsdl, $options);
    $data = $soap->__soapCall("GetWebAuthByKey",$xml);
}
catch(Exception $e) {
    die($e->getMessage());
}
var_dump($data);

print_r($data);

die;

0 个答案:

没有答案