我得到了这个错误:
stdClass对象(未将GetAllEntitiesResult =>对象引用设置为对象实例)。)
$wsdl = "http://192.168.25.10:200/FXOWS.asmx?WSDL";
$username="xxxx";
$password="xxxxx";
$orgid="x";
$client = new SoapClient($wsdl);
$token_ob = $client->GetAllEntities(array('userName'=>$username, 'passWord' =>$password,'OrgID' =>$orgid));
print_r($token_ob);
?>发布于 2016-10-13 10:27:28
下面是我在SOAP中使用的代码片段,您必须根据需要对其进行修改:
$params = array('userName' => $username,
'passWord' => $password,
'OrgID' => $orgid,
));
$wsdl = "http://192.168.25.10:200/FXOWS.asmx?WSDL";
$options = array(
'uri'=>'http://schemas.xmlsoap.org/soap/envelope/',
'style'=>SOAP_RPC,
'use'=>SOAP_ENCODED,
'soap_version'=>SOAP_1_1, // depends of your version
'cache_wsdl'=>WSDL_CACHE_NONE,
'connection_timeout'=>15,
'trace'=>true,
'encoding'=>'UTF-8',
'exceptions'=>true,
);
$soap = new SoapClient($wsdl, $options);
$token_ob = $soap->GetAllEntities($params);
var_dump($token_ob);告诉我你有什么结果。
https://stackoverflow.com/questions/40017524
复制相似问题