soap_fault class, allows for creation of faults mainly used for returning faults from deployed functions in a server instance. More...
Inheritance diagram for soap_fault:
Collaboration diagram for soap_fault:Public Member Functions | |
| soap_fault ($faultcode, $faultactor='', $faultstring='', $faultdetail='') | |
| constructor | |
| serialize () | |
| serialize a fault | |
| soap_fault ($faultcode, $faultactor='', $faultstring='', $faultdetail='') | |
| constructor | |
| serialize () | |
| serialize a fault | |
| soap_fault ($faultcode, $faultactor='', $faultstring='', $faultdetail='') | |
| constructor | |
| serialize () | |
| serialize a fault | |
| __toString () | |
Data Fields | |
| $faultcode | |
| $faultactor | |
| $faultstring | |
| $faultdetail | |
soap_fault class, allows for creation of faults mainly used for returning faults from deployed functions in a server instance.
Contains information for a SOAP fault.
public
Mainly used for returning faults from deployed functions in a server instance.
public
Mainly used for returning faults from deployed functions in a server instance.
public
Definition at line 669 of file nusoap.php.
| soap_fault::__toString | ( | ) |
Definition at line 984 of file nusoap.php.
{
return spl_object_hash($this);
}
| soap_fault::serialize | ( | ) |
serialize a fault
Definition at line 964 of file nusoap.php.
References nusoap_base::serialize_val().
{
$ns_string = '';
foreach($this->namespaces as $k => $v){
$ns_string .= "\n xmlns:$k=\"$v\"";
}
$return_msg =
'<?xml version="1.0" encoding="'.$this->soap_defencoding.'"?>'.
'<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"'.$ns_string.">\n".
'<SOAP-ENV:Body>'.
'<SOAP-ENV:Fault>'.
$this->serialize_val($this->faultcode, 'faultcode').
$this->serialize_val($this->faultactor, 'faultactor').
$this->serialize_val($this->faultstring, 'faultstring').
$this->serialize_val($this->faultdetail, 'detail').
'</SOAP-ENV:Fault>'.
'</SOAP-ENV:Body>'.
'</SOAP-ENV:Envelope>';
return $return_msg;
}
Here is the call graph for this function:| soap_fault::serialize | ( | ) |
serialize a fault
Definition at line 62 of file class.soap_fault.php.
References nusoap_base::serialize_val().
{
$ns_string = '';
foreach($this->namespaces as $k => $v){
$ns_string .= "\n xmlns:$k=\"$v\"";
}
$return_msg =
'<?xml version="1.0" encoding="'.$this->soap_defencoding.'"?>'.
'<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"'.$ns_string.">\n".
'<SOAP-ENV:Body>'.
'<SOAP-ENV:Fault>'.
$this->serialize_val($this->faultcode, 'faultcode').
$this->serialize_val($this->faultactor, 'faultactor').
$this->serialize_val($this->faultstring, 'faultstring').
$this->serialize_val($this->faultdetail, 'detail').
'</SOAP-ENV:Fault>'.
'</SOAP-ENV:Body>'.
'</SOAP-ENV:Envelope>';
return $return_msg;
}
Here is the call graph for this function:| soap_fault::serialize | ( | ) |
serialize a fault
public
Definition at line 696 of file nusoap.php.
{
$ns_string = '';
foreach($this->namespaces as $k => $v){
$ns_string .= "\n xmlns:$k=\"$v\"";
}
$return_msg =
'<?xml version="1.0" encoding="'.$this->soap_defencoding.'"?>'.
'<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"'.$ns_string.">\n".
'<SOAP-ENV:Body>'.
'<SOAP-ENV:Fault>'.
'<faultcode>'.$this->expandEntities($this->faultcode).'</faultcode>'.
'<faultactor>'.$this->expandEntities($this->faultactor).'</faultactor>'.
'<faultstring>'.$this->expandEntities($this->faultstring).'</faultstring>'.
'<detail>'.$this->serialize_val($this->faultdetail).'</detail>'.
'</SOAP-ENV:Fault>'.
'</SOAP-ENV:Body>'.
'</SOAP-ENV:Envelope>';
return $return_msg;
}
| soap_fault::soap_fault | ( | $ | faultcode, | |
| $ | faultactor = '', |
|||
| $ | faultstring = '', |
|||
| $ | faultdetail = '' | |||
| ) |
constructor
| string | $faultcode (client | server) | |
| string | $faultactor only used when msg routed between multiple actors | |
| string | $faultstring human readable error message | |
| string | $faultdetail |
Definition at line 684 of file nusoap.php.
References $faultactor, $faultcode, $faultdetail, and $faultstring.
{
$this->faultcode = $faultcode;
$this->faultactor = $faultactor;
$this->faultstring = $faultstring;
$this->faultdetail = $faultdetail;
}
| soap_fault::soap_fault | ( | $ | faultcode, | |
| $ | faultactor = '', |
|||
| $ | faultstring = '', |
|||
| $ | faultdetail = '' | |||
| ) |
constructor
| string | $faultcode (client | server) | |
| string | $faultactor only used when msg routed between multiple actors | |
| string | $faultstring human readable error message | |
| mixed | $faultdetail detail, typically a string or array of string |
Definition at line 950 of file nusoap.php.
References $faultactor, $faultcode, $faultdetail, $faultstring, and nusoap_base::nusoap_base().
{
parent::nusoap_base();
$this->faultcode = $faultcode;
$this->faultactor = $faultactor;
$this->faultstring = $faultstring;
$this->faultdetail = $faultdetail;
}
Here is the call graph for this function:| soap_fault::soap_fault | ( | $ | faultcode, | |
| $ | faultactor = '', |
|||
| $ | faultstring = '', |
|||
| $ | faultdetail = '' | |||
| ) |
constructor
| string | $faultcode (client | server) | |
| string | $faultactor only used when msg routed between multiple actors | |
| string | $faultstring human readable error message | |
| mixed | $faultdetail detail, typically a string or array of string |
Definition at line 48 of file class.soap_fault.php.
References $faultactor, $faultcode, $faultdetail, $faultstring, and nusoap_base::nusoap_base().
{
parent::nusoap_base();
$this->faultcode = $faultcode;
$this->faultactor = $faultactor;
$this->faultstring = $faultstring;
$this->faultdetail = $faultdetail;
}
Here is the call graph for this function:| soap_fault::$faultactor |
Definition at line 672 of file nusoap.php.
Referenced by soap_fault().
| soap_fault::$faultcode |
Definition at line 671 of file nusoap.php.
Referenced by soap_fault().
| soap_fault::$faultdetail |
Definition at line 674 of file nusoap.php.
Referenced by soap_fault().
| soap_fault::$faultstring |
Definition at line 673 of file nusoap.php.
Referenced by soap_fault().
1.7.1