Bug #72497 [Opn->Csd]: SoapClient does not generate exceptions.

From: Date: Sun, 26 Jun 2016 19:16:28 +0000
Subject: Bug #72497 [Opn->Csd]: SoapClient does not generate exceptions.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201857@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72497&edit=1 ID: 72497 User updated by: liti_007 at yahoo dot com dot br Reported by: liti_007 at yahoo dot com dot br Summary: SoapClient does not generate exceptions. -Status: Open +Status: Closed Type: Bug Package: SOAP related Operating System: Ubuntu Server 14.04.4 PHP Version: 7.0.8 Block user comment: N Private report: N New Comment: Error in my code. Previous Comments: ------------------------------------------------------------------------ [2016-06-26 18:37:17] liti_007 at yahoo dot com dot br Description: ------------ Apache 503 Service Unavailable when running the script. Test script: --------------- try{ $soap = new SoapClient($url, [ 'trace' => 1, 'exceptions' => 1, 'style' => SOAP_DOCUMENT, 'use' => SOAP_LITERAL, 'soap_version' => SOAP_1_1, 'encoding' => 'UTF-8', 'stream_context' => stream_context_create($stramOptions) ]); $return = $soap->solicitaEtiquetas($parametros); // <-- generated exception here. }catch (Exception $e){ echo $e->getMessage(); } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72497&edit=1

« previous php.bugs (#201857) next »