From a55f6cb66c9895cad190bab96f5f1a3b0f84fbba Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 9 Feb 2004 09:31:18 +0000 Subject: [PATCH] Allowing to report SOAP Fault with "return new SoapFault(...)" --- ext/soap/config.w32 | 2 +- ext/soap/readme.html | 39 +++++++++++++++++++++++++++++++++-- ext/soap/soap.c | 25 +++++++++++++++------- ext/soap/tests/server016.phpt | 34 ++++++++++++++++++++++++++++++ ext/soap/tests/server017.phpt | 33 +++++++++++++++++++++++++++++ 5 files changed, 123 insertions(+), 10 deletions(-) create mode 100644 ext/soap/tests/server016.phpt create mode 100644 ext/soap/tests/server017.phpt diff --git a/ext/soap/config.w32 b/ext/soap/config.w32 index cd93531867..048fd70ca1 100644 --- a/ext/soap/config.w32 +++ b/ext/soap/config.w32 @@ -1,7 +1,7 @@ // $Id$ // vim:ft=javascript -ARG_WITH("soap", "SOAP support", "no"); +ARG_ENABLE("soap", "SOAP support", "no"); if (PHP_SOAP != "no" && PHP_LIBXML == "yes") { EXTENSION('soap', 'soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c'); diff --git a/ext/soap/readme.html b/ext/soap/readme.html index cbb38ab776..26770dc9b0 100644 --- a/ext/soap/readme.html +++ b/ext/soap/readme.html @@ -28,7 +28,7 @@ TD:{ This extension makes use of the GNOME XML library. Download and install this library. You will need at least libxml-2.5.4.

Installation

-This extension is only available if PHP was configured with --with-soap. +This extension is only available if PHP was configured with --enable-soap.

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. @@ -107,6 +107,7 @@ The constants below are defined by this extension, and will only be available wh SoapParam SoapVar SoapHeader +SoapFault

SoapClient class

@@ -163,6 +164,16 @@ It is just a data holder and it has not any special method except constructor.
SoapHeader -- SoapHeader constructor
+
+

SoapFault class

+

+SoapFault is a special class that can be used for error reporting during +handling of SOAP request (on server). It has not any special methods except +constructor. +

+ + +
SoapFault -- SoapFault constructor