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 node problem XML -> CWF

Post new topic  Reply to topic
 Mapping node problem XML -> CWF « View previous topic :: View next topic » 
Author Message
michaelharris
PostPosted: Thu Jul 27, 2006 9:19 am    Post subject: Mapping node problem XML -> CWF Reply with quote

Novice

Joined: 09 Jun 2006
Posts: 20

I am trying to map an XML document to CWF and the $source references appear to be evaluating to NULL. One of the child elements is named exactly the same as the root element and it's the only thing I can think of that would be causing the problem.

XML document:
Code:
<VC_PICKSLOT_IFD>
   <CTRL_SEG>
      <TRNNAM>abc</TRNNAM>
      <TRNVER>123</TRNVER>
      <VC_PICKSLOT_IFD>
         <PRTNUM>123456</PRTNUM>
      </VC_PICKSLOT_IFD>
   </CTRL_SEG>
</VC_PICKSLOT_IFD>


Using mapping node, this statement doesn't work (target element is not created):
Code:
$target/QBP015/Item = $source/VC_PICKSLOT_IFD/CTRL_SEG/VC_PICKSLOT_IFD/PRTNUM


Using compute Node, this statement works great:
Code:
SET OutputRoot.MRM.Item = InputRoot.MRM.CTRL_SEG.VC_PICKSLOT_IFD.PRTNUM;


Any ideas?

WMB 6.0 - Linux for z/Series

Thanks,
Michael
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jul 28, 2006 12:24 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The path which the mapping node has generated contains the root element name. This is not required when the runtime parser is MRM. Check that you have set the 'Runtime Parser' property of your message set to 'MRM'.
Back to top
View user's profile Send private message
michaelharris
PostPosted: Fri Jul 28, 2006 6:08 am    Post subject: Reply with quote

Novice

Joined: 09 Jun 2006
Posts: 20

Thanks for your reply Kimbert.

The runtime parser is set to MRM and all of our other maps reference root elements in the same way and still work. If we rename (though not an option) the child VC_PICKSLOT_IFD element to something like VCPICKSLOTIFD, the existing map works fine...
Back to top
View user's profile Send private message
michaelharris
PostPosted: Mon Jul 31, 2006 5:21 am    Post subject: Reply with quote

Novice

Joined: 09 Jun 2006
Posts: 20

Problem has gone away! (though not solved). As it turns out, the vendor's spec was wrong and the child element VC_PICKSLOT_IFD is really supposed to be VC_PICKSLOT. I am still puzzled by this and will post my results when/if I am successful.
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 » Mapping node problem XML -> CWF
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.