PHP soapclient调用错误:对象引用未设置为对象的实例。

PHP soapclient调用错误:对象引用未设置为对象的实例。,php,web-services,soap,Php,Web Services,Soap,我有asmx webservice url:我正试图使用php soapclient调用此web服务,但我遇到了此错误(致命错误:SOAP错误:(错误代码:SOAP:Server,错误字符串:Server无法处理请求。-->对象引用未设置为对象的实例。)在C:\xampp\htdocs\wwwroot\captcha.php的第27行)。我已经尽力解决这个问题,但没有解决办法。有谁能帮我找出我做错事的地方吗 这是我的php代码: enter code here$tes = 'hi'; try{

我有asmx webservice url:我正试图使用php soapclient调用此web服务,但我遇到了此错误(致命错误:SOAP错误:(错误代码:SOAP:Server,错误字符串:Server无法处理请求。-->对象引用未设置为对象的实例。)在C:\xampp\htdocs\wwwroot\captcha.php的第27行)。我已经尽力解决这个问题,但没有解决办法。有谁能帮我找出我做错事的地方吗

这是我的php代码:

enter code here$tes = 'hi';
try{
$client = new SoapClient("http://newxilnexbackend.cloudapp.net/XilnexNewReg.asmx?WSDL");
$result = $client->RegistrationOfNewCompany(array(
$tes, $tes, $tes
));
header("Location: http://webapp.xilnex.com/"); 
}
catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring:          {$fault->faultstring})", E_USER_ERROR);
}}
我也尝试过这种方法,但得到了相同的错误:

$result = $client->RegistrationOfNewCompany(array(
EmailAddress=>$tes, 
CompanyName=>$tes, 
Name=>$tes
));