php - Object reference not set to an instance of an object on https soap call -
getting below error when trying make soap call using https.
below code. have tried different ways around no luck.
link http://dev.jp-websolutions.co.uk/teletrac/getsafetydata/test error i'm seeing soapfault exception: [soap:receiver] server unable process request. ---> object reference not set instance of object.
this i'm using right now.
header("content-type: text/plain");    $params = array(     "username" => "xxx",     "password" => "xxx",  ); $opts = array(     'ssl' => array('ciphers'=>'rc4-sha') ); ini_set("soap.wsdl_cache_enabled", "0"); $client = new soapclient("https://onlineavl2dev-uk.navmanwireless.com/onlineavl/api/v1.3/service.asmx?wsdl",  array('trace' => 1, 'soap_version' => soap_1_2, "encoding"=>"iso-8859-1", 'stream_context' => stream_context_create($opts))); #print_r($client); die; #$response = $client->dologin($params);  //print_r($client->__getfunctions()); //print_r($client->__gettypes()); try {     echo "<pre>\n";     $result = $client->dologin(array(         "username" => "xxx",         "password" => "xxx",     ));     print_r($result);     echo "\n"; } catch (soapfault $exception) {     echo $exception;       }  print_r($response); die;       
 
  
Comments
Post a Comment