GetSOAPErrMsg Function

Official Content
This documentation is valid for:

Returns the error description of the last operation.

Syntax

GetSOAPErrMsg()
 
Type Returned:
Character

Description

The GetSOAPErrMsg function returns the error description 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.

It can be use in conjuntion with GetSOAPErr Function

Example

&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

Scope

Data Types   Location
Objects Procedures, Transactions, Web Panels
Languages  .NET, Java
Platforms Android,  iOS (both as of GeneXus 15 Upgrade 5)

See Also

Location
GetSOAPErr
Error Codes and Messages for Location