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

PHP SOAP Client: can't define object

Posted by: admin October 28, 2018 Leave a comment

Questions:

I’m trying use native PHP SOAP Client for WSDL

<?php
header("Content-Type: text/plain"); 
$username="wsRPZVuser";
$password="wsRPZVuser123";      
$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($response);        
// 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?

Answers: