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 » WMB V8 InputBody Reference

Post new topic  Reply to topic
 WMB V8 InputBody Reference « View previous topic :: View next topic » 
Author Message
nathanw
PostPosted: Tue Sep 18, 2012 4:57 am    Post subject: WMB V8 InputBody Reference Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

Hey guys easy quick simple question. Upgrading V6 Broker Via V6.1 to V8

NOTE: I did not create this code

In order to create the output message on a certain flow a lookup is made to a db and based on 3 variables the required output string is inserted into the esql code.

CREATE LASTCHILD OF Ref NAME 'Value' VALUE EVAL('Environment.Variables.X.XML.' || CacheDB.MsgTracking[MsgLoopCount].INPUT_MSG_FIELD);

INPUT_MSG_FIELD = InputBody.(XML.Element)[1].FIELDNAME

By all reports this worked correctly in V6 incorporating the value of the Fieldname into the concatenation.

However, this failed in V8 and the INPUT_MSG_FIELD had to be changed to a value XXX_XXXXXX which was the fieldname in the incoming structure.


Once the change was implemented the output message was correct.

Have there been some changes under the covers in V8 that anyone knows of?

Why would this code stop functioning?

Your thoughts
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
kimbert
PostPosted: Tue Sep 18, 2012 7:09 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

See http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/ak04861_.htm

This is the correct syntax:
Code:
INPUT_MSG_FIELD = InputBody.(XML.Element)[1].{FIELDNAME};


Presumably, v6.1 was too lax, and it was spotted and tightened up.
Back to top
View user's profile Send private message
nathanw
PostPosted: Tue Sep 18, 2012 7:22 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

Kimbert many thanks

I suspect you are correct on the reason for it. I know that in the past coding could be very loose sometimes.
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
nathanw
PostPosted: Tue Sep 18, 2012 7:36 am    Post subject: WMB V8 InputBody Reference - resolved Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

Many thanks Kimbert

_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB V8 InputBody Reference
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.