26 require_once(
'PEAR.php');
50 function ilBMFFault($faultstring =
'unknown error', $faultcode =
'Client', $faultactor=NULL, $detail=NULL,
$mode = null,
$options = null)
53 if ($faultactor) $this->error_message_prefix = $faultactor;
68 $params[] =&
new ilBMFValue(
'faultcode',
'QName',
'SOAP-ENV:'.$this->code);
70 $params[] =&
new ilBMFValue(
'faultactor',
'anyURI', $this->error_message_prefix);
71 if (isset($this->backtrace)) {
72 $params[] =&
new ilBMFValue(
'detail',
'string', $this->backtrace);
74 $params[] =&
new ilBMFValue(
'detail',
'string', $this->userinfo);
79 return $msg->_makeEnvelope($methodValue, $headers);
92 global $SOAP_OBJECT_STRUCT;
93 if ($SOAP_OBJECT_STRUCT) {
94 $fault =&
new stdClass();
102 'faultcode' => $this->code,
103 'faultstring' => $this->
message,
104 'faultactor' => $this->error_message_prefix,
105 'detail' => $this->userinfo