In case of error on XML Request execution, an XML stream is returned with a <messages> tag.
Example: A source file member couldn’t be found during a procedure definition.
<?xml version="1.0" ?>
<messages>
<FATAL Class="file" ErrNo="3101" File="QRPGLESRC(FCVTNW_H)">A non-recoverable I/O error occurred. </FATAL>
</messages>
Example: Database file not found while calling a program.
<?xml version="1.0" ?>
<messages>
<FATAL Class="msg" MsgId="CPF5715" Msg=" File SP_CUST in library *LIBL not found."
Help="Cause . . . . . : The requested function did not find the file in the specified library.
Recovery . . . : Do one of the following, and then try the request again: -- Change the file or library name.
-- If *LIBL was specified, add the library that contains the file to the library list (ADDLIBLE command)."/>
</messages>