Home » Php » PHP SOAP Client: can't define object

PHP SOAP Client: can't define object

Posted by: admin August 13, 2018 Leave a comment


I’m trying use native PHP SOAP Client for WSDL

header("Content-Type: text/plain"); 
$options = array(
  'login' => $username,
  'password' => $password,
$wsdl_url = 'https://test.rpzv.iris.sk/WS_ZAP/RpzvService.svc?wsdl';
$client = new SoapClient($wsdl_url, $options);
$response = $client->ZapisanieUdajov($parametre);
// var_dump($client->__getFunctions()); 
// var_dump($client->__getTypes());     

I’m 4 hours looking out on Stackoverflow and Google for some solution, but I’m still got this error 🙁

Uncaught SoapFault exception: [a:InternalServiceFault] Object reference not set to an instance of an object.

Please can somebody help me?