note 104046 added to class.soapclient
| From: | tlk at osu1 dot php dot net | Date: | Thu, 19 May 2011 13:35:39 +0000 |
| Subject: | note 104046 added to class.soapclient | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179875@lists.php.net to get a copy of this message | ||
Make sure to prefix constructor calls with @ and catch SoapFault exceptions, otherwise you risk
having the php interpreter exit/die on simple network issues.
Robust sample code by Rasmus from http://bugs.php.net/bug.php?id=47584
<?php
try {
$x = @new SoapClient("non-existent.wsdl",array("exceptions" => 1));
} catch (SoapFault $E) {
echo $E->faultstring;
}
echo "ok\n";
----
Server IP: 195.184.96.15
Probable Submitter: 83.97.97.120
----
Manual Page -- http://www.php.net/manual/en/class.soapclient.php
Edit -- https://master.php.net/note/edit/104046
Del: integrated -- https://master.php.net/note/delete/104046/integrated
Del: useless -- https://master.php.net/note/delete/104046/useless
Del: bad code -- https://master.php.net/note/delete/104046/bad+code
Del: spam -- https://master.php.net/note/delete/104046/spam
Del: non-english -- https://master.php.net/note/delete/104046/non-english
Del: in docs -- https://master.php.net/note/delete/104046/in+docs
Del: other reasons-- https://master.php.net/note/delete/104046
Reject -- https://master.php.net/note/reject/104046
Search -- https://master.php.net/manage/user-notes.php