ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
nusoap_fault Class Reference

Contains information for a SOAP fault. More...

+ Inheritance diagram for nusoap_fault:
+ Collaboration diagram for nusoap_fault:

Public Member Functions

 __construct ($faultcode, $faultactor='', $faultstring='', $faultdetail='')
 constructor More...
 
 serialize ()
 serialize a fault More...
 
- Public Member Functions inherited from nusoap_base
 __construct ()
 constructor More...
 
 getGlobalDebugLevel ()
 gets the global debug level, which applies to future instances More...
 
 setGlobalDebugLevel ($level)
 sets the global debug level, which applies to future instances More...
 
 getDebugLevel ()
 gets the debug level for this instance More...
 
 setDebugLevel ($level)
 sets the debug level for this instance More...
 
 debug ($string)
 adds debug data to the instance debug string with formatting More...
 
 appendDebug ($string)
 adds debug data to the instance debug string without formatting More...
 
 clearDebug ()
 clears the current debug data for this instance More...
 
getDebug ()
 gets the current debug data for this instance More...
 
getDebugAsXMLComment ()
 gets the current debug data for this instance as an XML comment this may change the contents of the debug data More...
 
 expandEntities ($val)
 expands entities, e.g. More...
 
 getError ()
 returns error string if present More...
 
 setError ($str)
 sets error string More...
 
 isArraySimpleOrStruct ($val)
 detect if array is a simple array or a struct (associative array) More...
 
 serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false)
 serializes PHP values in accordance w/ section 5. More...
 
 serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/')
 serializes a message More...
 
 formatDump ($str)
 formats a string to be inserted into an HTML stream More...
 
 contractQname ($qname)
 contracts (changes namespace to prefix) a qualified name More...
 
 expandQname ($qname)
 expands (changes prefix to namespace) a qualified name More...
 
 getLocalPart ($str)
 returns the local part of a prefixed string returns the original string, if not prefixed More...
 
 getPrefix ($str)
 returns the prefix part of a prefixed string returns false, if not prefixed More...
 
 getNamespaceFromPrefix ($prefix)
 pass it a prefix, it returns a namespace More...
 
 getPrefixFromNamespace ($ns)
 returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace More...
 
 getmicrotime ()
 returns the time in ODBC canonical form with microseconds More...
 
 varDump ($data)
 Returns a string with the output of var_dump. More...
 
 __toString ()
 represents the object as a string More...
 

Data Fields

 $faultcode
 
 $faultactor
 
 $faultstring
 
 $faultdetail
 
- Data Fields inherited from nusoap_base
 $title = 'NuSOAP'
 
 $version = '0.7.3'
 
 $revision = '$Revision$'
 
 $error_str = ''
 
 $debug_str = ''
 
 $charencoding = true
 
 $debugLevel
 
 $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema'
 
 $soap_defencoding = 'UTF-8'
 
 $namespaces
 
 $usedNamespaces = array()
 
 $typemap
 
 $xmlEntities
 

Detailed Description

Contains information for a SOAP fault.

Mainly used for returning faults from deployed functions in a server instance.

Author
Dietrich Ayala dietr.nosp@m.ich@.nosp@m.ganx4.nosp@m..com
Version
$Id$ @access public

Definition at line 993 of file nusoap.php.

Constructor & Destructor Documentation

◆ __construct()

nusoap_fault::__construct (   $faultcode,
  $faultactor = '',
  $faultstring = '',
  $faultdetail = '' 
)

constructor

Parameters
string$faultcode(SOAP-ENV:Client | SOAP-ENV:Server)
string$faultactoronly used when msg routed between multiple actors
string$faultstringhuman readable error message
mixed$faultdetaildetail, typically a string or array of string

Definition at line 1028 of file nusoap.php.

1029 {
1031 $this->faultcode = $faultcode;
1032 $this->faultactor = $faultactor;
1033 $this->faultstring = $faultstring;
1034 $this->faultdetail = $faultdetail;
1035 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $faultactor, $faultcode, $faultdetail, $faultstring, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ serialize()

nusoap_fault::serialize ( )

serialize a fault

Returns
string The serialization of the fault instance. @access public

Definition at line 1043 of file nusoap.php.

1044 {
1045 $ns_string = '';
1046 foreach ($this->namespaces as $k => $v) {
1047 $ns_string .= "\n xmlns:$k=\"$v\"";
1048 }
1049 $return_msg =
1050 '<?xml version="1.0" encoding="' . $this->soap_defencoding . '"?>' .
1051 '<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"' . $ns_string . ">\n" .
1052 '<SOAP-ENV:Body>' .
1053 '<SOAP-ENV:Fault>' .
1054 $this->serialize_val($this->faultcode, 'faultcode') .
1055 $this->serialize_val($this->faultstring, 'faultstring') .
1056 $this->serialize_val($this->faultactor, 'faultactor') .
1057 $this->serialize_val($this->faultdetail, 'detail') .
1058 '</SOAP-ENV:Fault>' .
1059 '</SOAP-ENV:Body>' .
1060 '</SOAP-ENV:Envelope>';
1061 return $return_msg;
1062 }
serialize_val($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false)
serializes PHP values in accordance w/ section 5.
Definition: nusoap.php:391

References nusoap_base\serialize_val().

+ Here is the call graph for this function:

Field Documentation

◆ $faultactor

nusoap_fault::$faultactor

Definition at line 1006 of file nusoap.php.

Referenced by __construct().

◆ $faultcode

nusoap_fault::$faultcode

Definition at line 1000 of file nusoap.php.

Referenced by __construct().

◆ $faultdetail

nusoap_fault::$faultdetail

Definition at line 1018 of file nusoap.php.

Referenced by __construct().

◆ $faultstring

nusoap_fault::$faultstring

Definition at line 1012 of file nusoap.php.

Referenced by __construct().


The documentation for this class was generated from the following file: