ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Validation ExceptionList

Post new topic  Reply to topic
 Validation ExceptionList « View previous topic :: View next topic » 
Author Message
WMB_User
PostPosted: Mon Aug 01, 2011 3:14 pm    Post subject: Validation ExceptionList Reply with quote

Apprentice

Joined: 17 Nov 2008
Posts: 31

WMB 6.1.0.4

I'm successfuly capturing a validation failure through the following ESQL code:

Code:
DECLARE Options  INTEGER BITOR(ValidateImmediate, ValidateContent, ValidateValue, ValidateExceptionList);

DECLARE CONTINUE HANDLER FOR SQLSTATE LIKE'%'
BEGIN
  CREATE LASTCHILD OF envRef NAMESPACE ns1 NAME 'ENotificationResponseItem';
    MOVE envRef LASTCHILD;
    SET envRef.(XMLNSC.NamespaceDecl)xmlns  =  ns1;
  CREATE LASTCHILD OF envRef NAMESPACE response NAME 'Status'   VALUE 'Error';
    MOVE envRef LASTCHILD;
    SET envRef.(XMLNSC.NamespaceDecl)xmlns  =  response;
      MOVE envRef PARENT;
      CREATE LASTCHILD OF envRef NAMESPACE response NAME 'StatusDetail';
        MOVE envRef LASTCHILD;
        SET envRef.(XMLNSC.NamespaceDecl)xmlns  =  response;
        CREATE LASTCHILD OF envRef NAMESPACE response NAME 'Detail';
          MOVE envRef LASTCHILD;
          CREATE LASTCHILD OF envRef NAMESPACE response NAME 'Code'     VALUE '200';
          CREATE LASTCHILD OF envRef NAMESPACE response NAME 'Message'  VALUE 'Schema Validation Failure';
    SET idxRequests  =  idxRequests + 1;
    ITERATE Z;
END;
         
SET myBLOB  =  ASBITSTREAM(envRef2.CSTMR_REQUEST.XMLNSC Encoding inEncoding CCSID inCCSID OPTIONS Options SET 'eNotificationMessageSet' TYPE 'CSTMR' FORMAT 'XML1');


However, I want to enhance the Message element with details of the failure. Where can I obtain those details? An InputExeptionList does not appear to be generated.

Thanks.


Last edited by WMB_User on Mon Aug 01, 2011 6:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
WMB_User
PostPosted: Mon Aug 01, 2011 3:16 pm    Post subject: Correcting typo Reply with quote

Apprentice

Joined: 17 Nov 2008
Posts: 31

"InputExeptionList" should have been spelled "InputExceptionList"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Validation ExceptionList
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.