|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesangosson (last revision 2014-01-21 12:26 UTC by admin at angosso dot net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-01-21 18:06 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2014-01-21 18:06 UTC] requinix@php.net
[2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 04:00:01 2025 UTC |
Description: ------------ Service threw exceptions, A Yar_Server_Exception in client side Server Test script: --------------- Yar_Server_Exception extends Exception { /* Properties */ protected $_type ; /* Methods */ public stringgetType ( void ) /* Inherited methods */ final public stringException::getMessage ( void ) final public ExceptionException::getPrevious ( void ) final public mixedException::getCode ( void ) final public stringException::getFile ( void ) final public intException::getLine ( void ) final public arrayException::getTrace ( void ) final public stringException::getTraceAsString ( void ) public string Exception::__toString ( void ) final private voidException::__clone ( void ) } Contenu de /home/angosson/ Expected result: ---------------- <?php class MySoapService { private $user_is_valid; function MyHeader($header) { if ((isset($header->Username)) && (isset($header->Password))) { if (ValidateUser($header->Username, $header->Password)) { $user_is_valid = true;/home/angosson/public_html/ (www); } } } function MySoapRequest($request) { if ($user_is_valid) { // process request Accueil /home/angosson/ /home/angosson/public_ftp/ /home/angosson/public_html/ (www) index.html.var* index.htm* index.html* index.shtml* index.xhtml* index.wml* index.perl* index.pl* index.plx* index.ppl* index.cgi* index.jsp* index.js* index.jp* index.php4* index.php3* index.php* index.phtml* default.htm* default.html* home.htm* index.php5* Default.html* Default.htm* home.html* } else { throw new MyFault("MySoapRequest", "User not valid."); } } } ?> Actual result: -------------- Called when that header is not received.