You are here

function soap_server::fault in Salesforce Suite 5.2

Same name in this branch
  1. 5.2 includes/nusoap.php \soap_server::fault()
  2. 5.2 includes/nusoap.orig.php \soap_server::fault()
Same name and namespace in other branches
  1. 5 includes/nusoap.php \soap_server::fault()
  2. 5 includes/nusoap.orig.php \soap_server::fault()

* Specify a fault to be returned to the client. * This also acts as a flag to the server that a fault has occured. * *

Parameters

string $faultcode: * @param string $faultstring * @param string $faultactor * @param string $faultdetail * @access public

8 calls to soap_server::fault()
soap_server::invoke_method in includes/nusoap.php
* invokes a PHP function for the requested SOAP method * * The following fields are set by this function (when successful) * * methodreturn * * Note that the PHP function that is called may also set the following * fields to affect the response…
soap_server::invoke_method in includes/nusoap.orig.php
* invokes a PHP function for the requested SOAP method * * The following fields are set by this function (when successful) * * methodreturn * * Note that the PHP function that is called may also set the following * fields to affect the response…
soap_server::parseRequest in includes/nusoap.php
* processes SOAP message received from client * *
soap_server::parseRequest in includes/nusoap.orig.php
* processes SOAP message received from client * *
soap_server::parse_request in includes/nusoap.php
* parses a request * * The following fields are set by this function (when successful) * * headers * request * xml_encoding * SOAPAction * request * requestSOAP * methodURI * methodname * methodparams * requestHeaders * document * *…

... See full list

File

includes/nusoap.php, line 3977

Class

soap_server
soap_server allows the user to create a SOAP server that is capable of receiving messages and returning responses

Code

function fault($faultcode, $faultstring, $faultactor = '', $faultdetail = '') {
  if ($faultdetail == '' && $this->debug_flag) {
    $faultdetail = $this
      ->getDebug();
  }
  $this->fault = new soap_fault($faultcode, $faultactor, $faultstring, $faultdetail);
  $this->fault->soap_defencoding = $this->soap_defencoding;
}