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 » problem with Mapping a target element from source msg elem

Post new topic  Reply to topic
 problem with Mapping a target element from source msg elem « View previous topic :: View next topic » 
Author Message
hdjur
PostPosted: Thu Jan 11, 2007 5:39 am    Post subject: problem with Mapping a target element from source msg elem Reply with quote

Centurion

Joined: 16 Sep 2004
Posts: 116
Location: Zagreb

Hi!

Message mapping editor states

in Source Pane:

$source - Properties, Headers, some_source_msg_name

in Target Pane:

$source - Properties, Headers, some_target_msg_name

When I define mapping with constant it's O.K.
When I reference source like this:

$source/some_source_msg_name/some_elem_name

there is no target element in the output MRM. The usual reason for this is ...? Thanks in advance.
Back to top
View user's profile Send private message
hdjur
PostPosted: Thu Jan 11, 2007 7:07 am    Post subject: Reply with quote

Centurion

Joined: 16 Sep 2004
Posts: 116
Location: Zagreb

If source and target messages are the same, if I map like this:

$source/msg into $target/msg

all immediate children are properly mapped.

But this does not work (mapping children into children):

$source/msg/elem into $target/msg/elem

Mapping with constants does work.

Where did I possibly go wrong?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jan 11, 2007 7:20 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The most common cause for this is that the target expression actually evaulates to an empty field.

That is, "$source/msg/elem" resolves to an empty field.

Usually this is because the path is wrong, either because it's just typed wrong or because the namespaces are wrong.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
pathipati
PostPosted: Thu Jan 11, 2007 10:06 am    Post subject: Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

Are you using Message Sets? if so which type(XML,TDS..)? Did you see any warnings for particular elements while creating Message Definition files?
Back to top
View user's profile Send private message Yahoo Messenger
hdjur
PostPosted: Tue Jan 23, 2007 1:09 am    Post subject: Reply with quote

Centurion

Joined: 16 Sep 2004
Posts: 116
Location: Zagreb

Thanks again pathipati and jefflowrey, for your consideration of my problem. Let me tell you that you were right. I was mapping multipart message, and didn't realize condition which was set to fn:false(), by default, for mapping particular inner message. When I changed it to something like this:

$source/outerMessage/messageIdentifier='msgAliasN'

for the Nth inner message mapping, I got what I wanted. Besides that, I did first mapping only for Nth inner message, and I was testing it for a while by putting Mth inner message, until I realized what I was doing. Of course that "$source/msg/elem" resolved to an empty field, in that case.
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 » problem with Mapping a target element from source msg elem
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.