FaultCode property: SOAPDoc class
Description
Use the FaultCode property to return the fault code if the SOAP message has one. Not every message has a fault code. It is returned only when the SOAP method has had an error in processing and the SOAP method supports fault codes. This property returns a number.
If the fault code in the message cannot be converted to a number, the value 0 is returned. Use FaultCodeS to get the fault code value as a string.
This property is read-only.
Example
Local SOAPDoc &MyDoc;
Local integer &Fault;
&MyDoc = CreateSOAPDoc();
&MyDoc.AddFault("400", "Server Error");
&Fault = &MyDoc.FaultCode;