Привет, у меня есть запрос в мыле, но у меня есть некоторая ошибка при попытке запроса на моем сайте.Ошибка при попытке просмотреть мыло с php
Фатальная ошибка: Вызов функции члена органа() на не-объект в /home/loraclec/public_html/pick5.php на линии 14
Запрос:
<?php
/** define the SOAP client using the url for the service**/
$SoapiClient = new soapclient('http://14.141.212.201/ConRsltAPI/Result.asmx?WSDL', array('trace' => 1));
$lStrCred = "GI2304CON15";
$lStrGameName = "PICK3";
$lstrStatus = "0";
$thearray = array(
'lStrCred' => $lStrCred,
'lStrGameName' => $lStrGameName,
'lstrStatus' => $lstrStatus
);
$result = $client->Body($thearray);
if (is_soap_fault($result)):
echo '<h1>ERRROR</h1><pre>';
print_r($result);
echo '</pre>';
else:
echo '<h1>Working FINE</h1><pre>';
print_r($result);
echo '</pre>';
endif;
// see the last SOAP request
echo htmlspecialchars($client->__getLastRequest(), ENT_QUOTES);
// print the SOAP response
echo htmlspecialchars($client->__getLastResponse(), ENT_QUOTES);
/** lets store the login token just in case we want to use it for later use**/
$token = $result->token;
?>
Попробуйте изменить '$ result = $ client-> Body ($ thearray);' с '$ result = $ client-> ConAPI_RSLT ($ thearray);' –
Если '$ client' в строке 14 не будет' $ SoapiClient '? – user2959229