I am soapClient to access web service as follows.
$con = new SoapClient('wsdl url');
$array = array("apiRequestDetails" => array(
"id" => "0000045399",
"mobile" => "9843484142",
"pin" => "b59c67bf196a4758191e42f76670ceba",
"refNumber" => "222",
"serviceCode" => "23",
"trxnTraceId" => "1",
"value" => "200.068879335"
));
$det = $con->__call('initiatePayment', $array);
echo '<pre>';
print_r($det);
I get following error Fatal error: Uncaught SoapFault exception: [S:Server] java.lang.NullPointerException in D:\xampp\htdocs\sharepoint\connection.php:25 Stack trace:
0 D:\xampp\htdocs\sharepoint\connection.php(25): SoapClient->__call('initiatePayment', Array)
1 {main}
thrown in D:\xampp\htdocs\sharepoint\connection.php on line 25 Can anyone tell me what this error is and how can i solve it. thanks in advance
__calldirectly is deprecated, check my answer, it contains a link to the man page