From f9a351f9bfb40cd1dfce2786ed76bab1a56bf723 Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Fri, 19 Jul 2013 11:45:47 +0200 Subject: [PATCH] [SoapServer] Added Sender and Receiver SoapFault exception --- .../Exception/ReceiverSoapFault.php | 26 +++++++++++++++++++ .../SoapServer/Exception/SenderSoapFault.php | 26 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 src/BeSimple/SoapServer/Exception/ReceiverSoapFault.php create mode 100644 src/BeSimple/SoapServer/Exception/SenderSoapFault.php diff --git a/src/BeSimple/SoapServer/Exception/ReceiverSoapFault.php b/src/BeSimple/SoapServer/Exception/ReceiverSoapFault.php new file mode 100644 index 0000000..dbe4ce6 --- /dev/null +++ b/src/BeSimple/SoapServer/Exception/ReceiverSoapFault.php @@ -0,0 +1,26 @@ + + * (c) Francis Besset + * (c) Andreas Schamberger + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace BeSimple\SoapServer\Exception; + +/** + * ReceiverSoapFault send a "Receiver" fault code to client. + * This fault code is standardized: http://www.w3.org/TR/soap12-part1/#tabsoapfaultcodes + */ +class ReceiverSoapFault extends SoapFault +{ + public function __construct($faultstring, $faultactor = null, $detail = null, $faultname = null, $headerfault = null) + { + parent::__construct('Receiver', $faultstring, $faultactor, $detail, $faultname, $headerfault); + } +} diff --git a/src/BeSimple/SoapServer/Exception/SenderSoapFault.php b/src/BeSimple/SoapServer/Exception/SenderSoapFault.php new file mode 100644 index 0000000..5fc89fa --- /dev/null +++ b/src/BeSimple/SoapServer/Exception/SenderSoapFault.php @@ -0,0 +1,26 @@ + + * (c) Francis Besset + * (c) Andreas Schamberger + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace BeSimple\SoapServer\Exception; + +/** + * SenderSoapFault send a "Sender" fault code to client. + * This fault code is standardized: http://www.w3.org/TR/soap12-part1/#tabsoapfaultcodes + */ +class SenderSoapFault extends SoapFault +{ + public function __construct($faultstring, $faultactor = null, $detail = null, $faultname = null, $headerfault = null) + { + parent::__construct('Sender', $faultstring, $faultactor, $detail, $faultname, $headerfault); + } +}