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 » XML empty Tags Input Message Validation

Post new topic  Reply to topic
 XML empty Tags Input Message Validation « View previous topic :: View next topic » 
Author Message
MrLight
PostPosted: Tue Feb 07, 2023 6:42 am    Post subject: XML empty Tags Input Message Validation Reply with quote

Novice

Joined: 04 Aug 2022
Posts: 14

Hello All,

Need Ur support as i am trying to validate on the incoming input message that all tags not empty , and incase its empty i will replace it

I need this to be dynamic not for a specific parameter , just once there is an empty value founded it will be replaced


Code:
IF EXISTS (InRef.:*[]) THEN
      IF FIELDVALUE(InRef.:*[]) = '' THEN
          SET OutputRoot.JSON.Data.newtag1= '""';
     SET OutputRoot.JSON.Data.newtag2 = '""';
      ELSE
           SET OutputRoot.JSON.Data.newtag1=
                               InputRoot.XMLNSC.ns:AddRequest.MessageBody.tag1;
           SET OutputRoot.JSON.Data.newtag2=
                               InputRoot.XMLNSC.ns:AddRequest.MessageBody.tag2;
        END IF;
END IF;


Note :
The code above just validate on the first parameter if it's empty , if there 3ed or 2nd parameters empty it will be not included

Waiting your support ,
Thanks in advance .
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 » XML empty Tags Input Message Validation
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.