standard.net.soap.SOAPEnvNewWithFault

SOAPEnvNewWithFault is available since version 1.0.

Prototype:

number SOAPEnvNewWithFault(number faultCode, string faultString, string faultActor, string detail, var number out_env)

Parameters

faultCode
[in] the fault code
faultString
[in] a fault message
detail
[in] the detail on the error
out_env
[out] the resulting envelope with parameters like in the example section

Description:

Create an envelope with a fault object.

Return value:

Returns null if succeeded, or an error handle (to get the error text, you should call SOAPError)

Example
  <SOAP-ENV:Envelope xmlns:SOAP-ENV="..." SOAP-ENV:encoding="..."
       xmlns:xsi="..."
     xmlns:xsd="...">
   <SOAP-ENV:Body>
	 <Fault>
	  <faultcode>...</faultcode>
	  <faultstring>...</faultstring>
	  <faultactor>...</faultactor>
	  <faultdetail>..</faultdetail>
	 </Fault>
   </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>