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 » Mapping empty complex elements

Post new topic  Reply to topic
 Mapping empty complex elements « View previous topic :: View next topic » 
Author Message
mqbrk_newbie
PostPosted: Tue Jun 23, 2009 3:42 pm    Post subject: Mapping empty complex elements Reply with quote

Acolyte

Joined: 13 Sep 2004
Posts: 70

How Can I check if the attribute is not or not in mapping node.Suppose if I have source xml like this which attribute KEY_NAME (MTF.FloodRequestID,MTF.MAPUPDATE,CLIENT.TRACKINGID). We request comes in I may have all 3 attributes or may be 2 or 1. If all 3 attributes exists than I have to map the 3 different target name to its value otherwise I have to map it to blank. How can I achieve this in mapping node.
For example if all 3 attribute exists:
source1 Target Vaule

MTF.FloodRequestID target1= MTF17320440
MAPUPDATE target2= N
CLIENT.TRACKINGID target3= 003398393

If only 2 attributes MTF.FloodRequestID,MTF.MAPUPDATE exists

MTF.FloodRequestID target1= MTF17320440
MAPUPDATE target2= N
target3= E101


<?xml version="1.0" encoding="UTF-8" ?>
- <RESPONSE_GROUP>
- <RESPONSE ResponseDateTime="2007-04- 07T07:00:51">
<KEY _Name="MTF.FloodRequestID" _Value="MTF17320440" />
<KEY _Name="MTF.MAPUPDATE" _Value="N" />
<KEY _Name="CLIENT.TRACKINGID" _Value="003398393" />
- </RESPONSE_GROUP>

Can Anyone suggest me how to do this in mapping node.

Thanks
Prabhu
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping empty complex elements
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.