SOAP
[ class tree: SOAP ] [ index: SOAP ] [ all elements ]

Class: SOAP_Fault

Source Location: /SOAP-0.13.0/SOAP/Fault.php

Class Overview

PEAR_Error
   |
   --SOAP_Fault

PEAR::Error wrapper used to match SOAP Faults to PEAR Errors


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 48]
PEAR::Error wrapper used to match SOAP Faults to PEAR Errors

SOAP_Fault can provide a complete backtrace of the error. Revealing these details in a public web services is a bad idea because it can be used by attackers. Thus you have to enable backtrace information in SOAP_Fault responses by putting the following code in your script after your "require_once 'SOAP/Server.php';" line:

  1.  $backtrace =PEAR::getStaticProperty('SOAP_Fault''backtrace');
  2.  $backtrace = true;



[ Top ]


Method Detail

SOAP_Fault (Constructor)   [line 60]

SOAP_Fault SOAP_Fault( [string $faultstring = 'unknown error'], [mixed $faultcode = 'Client'], [mixed $faultactor = null], [mixed $detail = null], [array $mode = null], [array $options = null])

Constructor.

Parameters:

string   $faultstring     Message string for fault.
mixed   $faultcode     The faultcode.
mixed   $faultactor     
mixed   $detail     @see PEAR_Error
array   $mode     @see PEAR_Error
array   $options     @see PEAR_Error

[ Top ]

getActor   [line 114]

string getActor( )

Returns the SOAP actor for the fault.

[ Top ]

getDetail   [line 124]

string getDetail( )

Returns the fault detail.

[ Top ]

getFault   [line 99]

array getFault( )

Returns a simple native PHP array containing the fault data.

[ Top ]

message   [line 75]

string message( [ $encoding = SOAP_DEFAULT_ENCODING])

Returns a SOAP XML message that can be sent as a server response.

Parameters:

   $encoding     

[ Top ]


Documentation generated on Thu, 26 Jan 2012 14:00:10 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.