Server wa unable to process request ---> Object reference not set to an instance of an object
Publicado por Jers (5 intervenciones) el 01/02/2016 16:41:08
Amigos estoy tratando de utilizar unos metodos de un Web Services wsdl utilizando SoapClient y me retorna el siguiente error:
Server wa unable to process request ---> Object reference not set to an instance of an object
aquí muestro el código utilizado:
Server wa unable to process request ---> Object reference not set to an instance of an object
aquí muestro el código utilizado:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$ws_url = "https://xxxxxxxxx.asmx?wsdl";
$location = "https://xxxxx.asmx";
define("TIMEOUT", 25);
ini_set('default_socket_timeout', TIMEOUT);
$opts = array( 'ssl' => array( 'verify_peer' => false));
$streamContext = stream_context_create($opts);
try{
$client = new SoapClient($ws_url, array ("soap_version" => SOAP_1_1,"location" => $location,'keep_alive' => true,'trace' => 1,'cache_wsdl' => WSDL_CACHE_NONE,"stream_context" => $streamContext));
$m = "AuntenticarCliente";
$d = array("Usuario" => "user","Password" => "clave");
try{
$result = $client->__soapCall($m, $d);
var_dump($result);
} catch (Exception $ex) {
var_dump($ex);
}
}catch (Exception $ex) {
var_dump($ex);
}
Valora esta pregunta


0