Handle GWS server errors (legacy)

When a Genero Web Services service operation returns a status that is non-zero, you can get a more detailed error description from the record wsError.

If you generated your client stub files using the --legacy option, the generated globals file (.inc) contains the definition for the wsError record.

To include the globals file in your client application, see Step 2: Import the stub file (legacy).

The wsError record is defined as follows:
DEFINE wsError RECORD
  code STRING,         -- Short description of the error
  codeNS STRING,       -- The namespace of the error code
  description STRING,  -- Long description of the error
  action STRING        -- internal "SOAP action"
END RECORD