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 » Unexpected mapping node behavior on attributes

Post new topic  Reply to topic
 Unexpected mapping node behavior on attributes « View previous topic :: View next topic » 
Author Message
ykthinker
PostPosted: Fri Oct 30, 2009 7:02 am    Post subject: Unexpected mapping node behavior on attributes Reply with quote

Newbie

Joined: 30 Oct 2009
Posts: 2

Version: 6.1.0.2

My flow: MQInput --> Mapping Node --> MQOutput

Parser: XMLNSC

Source: <field1 att1="1" att2="2">123</field1>
Aiming Target: <field2>123</field2>
Actual result: <field2 attr1="1" att2="2">123</field2>

Scenario: Source and Target have totally different schema. No instruction has been put down for any attributes. They just get copied over unexpectedly.

Question: As seen above, the attributes from the source get mapped to the target even though the target schema don't have attributes in field2 element. Is there a setting I can adjust to not let this happen or it is a defect? Thanks a lot.

Just by the way that I have search through the forum and did find what I am looking for.
Back to top
View user's profile Send private message
gs
PostPosted: Mon Nov 02, 2009 6:35 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

Actually, we've stumbled upon the exact same problem. You'd expect the mapping node to detect whether attributes are in the target schema. Can anyone from IBM comment on this?

Our workaround was to use the ESQL function fieldvalue() on every field where to skip the attributes.
Back to top
View user's profile Send private message
ykthinker
PostPosted: Mon Nov 02, 2009 12:06 pm    Post subject: Reply with quote

Newbie

Joined: 30 Oct 2009
Posts: 2

When I changed the parser to XMLNS, it start giving expected result. So it seems to be problems with XMLNSC.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Nov 02, 2009 12:14 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why would the mapping node arbitrarily throw away attributes, unless you specifically told it to?
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Nov 02, 2009 2:27 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I suspect that this is a defect in the Mapping node.
In ESQL, if you copy A to B, you get a full tree copy by default. That's what mqjeff was referring to.
In the Mapping node, it works a little differently because the user can clearly indicate what they want to map. The behaviour of the Mapping node when used with XMLNS is correct. It's behaviour with XMLNSC is not.

Please can you raise a PMR for this, and reference this thread as background info for whoever responds.
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 » Unexpected mapping node behavior on attributes
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.