的WSDL的图像
我的朋友,我想知道我在代码中的做错了什么,在该代码中,它继续给出避免化的错误。当我正确设置所有参数时,它会显示一个类错误(STDCLASS(。这是SOAP UI和PHP代码中的WSDL打印。我留下了我已经尝试过的选项。
<pre>
$soapParams = array('login' => 'master',
'password' => 'master',
'authentication' => SOAP_AUTHENTICATION_BASIC,
'trace' => 1,
'exceptions' => 0 );
$client = new SoapClient("http://189.60.63.128:8061/wsDataServe/MEX?wsdl",$soapParams);
//$result = $client->__soapCall("ReadView",$params);
//$result = $client->__soapCall("ReadView",array('DataServerName' => 'EduAlunoData', 'Filtro'=>'?', 'Contexto'=>'?'));
//$result=$client->__call("ReadView", ['ReadView' => ['DataServerName' => 'EduAlunoData', 'Filtro' => '1=1','Contexto'=>'?']]);
$result=$client->__soapCall("ReadView", ['DataServerName' => "EduAlunoData", 'Filtro' => '1=1','Contexto'=>'?']);
print $result;
</pre>
来自肥皂UI
我解决了问题:
<?php
$soapParams = array('login' => 'master',
'password' => 'master',
'authentication' => SOAP_AUTHENTICATION_BASIC,
'trace' => 1,
'exceptions' => 0
);
$params = array();
$client = new SoapClient("http://200.30.20.120:8051/wsDataServer/MEX?wsdl", $soapParams);
echo "Connected";
$params = array('DataServerName' => 'EduAlunoData', 'Filtro'=>'1=1', 'Contexto'=>'?');
var_dump($params);
$result = $client->ReadView($params);
echo "Response:n" . $client->__getLastResponse() . "<br><br>";
//echo "<br>";
//echo "REQUEST:n" . $client->__getLastRequest() . "<br><br>";
//echo "REQUEST HEADERS:n" . $client->__getLastRequestHeaders() . "<br><br>";
//echo "RESPONSE HEADERS:n" . $client->__getLastResponseHeaders() . "<br><br>";
//var_dump($client->__getTypes());
//var_dump($client->__getFunctions());
//print $result;
?>