Official Content

Returns the error code of the last operation.

Syntax

GetSOAPErr()
 
Type Returned:
Numeric(6)

Scope

Objects: Procedure, Transaction, Web Panel, Data Provider
Generators: .NET, .NET Framework, Java Android (since GeneXus 15 Upgrade 5),  Apple (since GeneXus 15 Upgrade 5)

Description

The GetSOAPErr function returns the error code of the last SOAP operation. That is, when you have a Location variable and a location name is assigned to it, or when you make a SOAP call.

Samples

&Err = GetSOAPErr()
If &err <> 0 Or null(&location.Host)
    Do Case
    Case &err = -20007
        &error = "Unknown error to set a web service, unknown location:" + &LocName + newline() + GetSOAPErrMsg()
    Case &err > 0
        &error = "Unknown error to set a web service:" + &LocName + newline() + GetSOAPErrMsg()
    Otherwise
        &error = "Error from unknown host to set a web service:" + &LocName
    EndCase
    Return
EndIf

See Also

Location
SOAP
GetSOAPErrMsg
Error Codes and Messages for Location






Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant