Skip to content

psFaultCode - cClientWebService

Returns the FaultCode of the last web service call

Type: Property
Access: Read/Write
Data Type: String
Parameters: None

Syntax

Property String psFaultCode
Access Type Syntax
Read Access: Get psFaultCode to StringVariable
Write Access: Set psFaultCode to StringVariable/Value

Description

If the last web-service call generated a SOAP fault, the SOAP fault-code will be placed in the psFaultCode property. The SOAP fault description will be found in psFaultString property.

The status of a the last web-service call is stored in the peTransferStatus property. If a SOAP fault occurred the status will be wssSoapFault.

Get wsCustomerName of oWSCustomerService to sName
Get peTransferStatus of oWSCustomerService to eTransferStatus
If (eTransferStatus=wssSoapFault) begin
      get psFaultCode of oWSCustomerService to sFaultCode
      get psFaultString of oWSCustomerService to sFaultString
      Send ReportFaultError sFaultCode sFaultString
end

See Also

psFaultString | peTransferStatus | pbSuppressLastError | TransferErrorDescription | LastError