Skip to content

psFaultString - cClientWebService

Returns the FaultCode of the last web service call

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

Syntax

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

Description

If the last web-service call generated a SOAP fault, the SOAP fault-description string code will be placed in the psFaultString property. The SOAP fault code will be found in psFaultCode 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

psFaultCode | peTransferStatus | pbSuppressLastError | TransferErrorDescription | LastError