PHP SOAP/WSDL call: Object reference not set to an instance of an object -


i'm new soap, i've gone through every answer of stackoverflow couldn't find , haven't been able find solution.

the error i'm getting:

error: system.web.services.protocols.soapexception: server unable process request. ---> system.nullreferenceexception: object reference not set instance of object. @ contactatonce.portal.webservices.security.getportaluser(providercredential provider) in z:.jenkins\jobs\build services\workspace\websites\portal4.0\contactatoncereportingservice.asmx.cs:line 530 @ contactatonce.portal.webservices.contactatoncereportingservice.getstatisticssummary(providercredential provider, reportfiltercriteria filter) in z:.jenkins\jobs\build services\workspace\websites\portal4.0\contactatoncereportingservice.asmx.cs:line 63 --- end of inner exception stack trace ---

my code follows:

$url = "https://services.contactatonce.com/contactatoncereportingservice.asmx?wsdl";  $provider = array(   "id"        => "12345",   "username"  => "em@il.net",   "password"  => "hunter2" );  $filter = array(   "startdate"     => "2017-01-01",   "enddate"       => "2017-03-03",   "advertiserid"  => "",   "usetime"       => "" );  try {   $soapclient = new soapclient($url, array(       'trace' => true, // debugging, disable in production   ));    $result = $soapclient->getstatisticssummary(array("providercredential" => $provider, "reportfiltercriteria" => $filter)); } catch (exception $e) {   echo "<b>error: </b>";   echo $e->getmessage(); } 

i've tried messing variables , inputs in whole lot of different ways, nothing changes error. i'm pretty sure i'm on right path, because var_dump($soapclient->__gettypes()); outputs whole list of functions.

the developer document located here, hasn't helped me progress further: http://www.contactatonce.com/support/reportingservice#getstatisticssummary


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -