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

Class: SOAP_Fault

Source Location: /SOAP-0.10.0/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 47]
PEAR::Error wrapper used to match SOAP Faults to PEAR Errors

SOAP_Fault transmissions normally contain 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. Backtrace information can be kept out of SOAP_Fault responses by putting the following code in your script after your "require_once 'SOAP/Server.php';" line:

  1.  $skiptrace =PEAR::getStaticProperty('PEAR_Error''skiptrace');
  2.  $skiptrace = true;



[ Top ]


Method Detail

SOAP_Fault (Constructor)   [line 59]

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 120]

string getActor( )

Returns the SOAP actor for the fault.

[ Top ]

getDetail   [line 130]

string getDetail( )

Returns the fault detail.

[ Top ]

getFault   [line 97]

array getFault( )

Returns a simple native PHP array containing the fault data.

[ Top ]

message   [line 74]

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 Mon, 11 Mar 2019 14:54:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.