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 » XML Problem with MQSI 2.02 (bug?)

Post new topic  Reply to topic
 XML Problem with MQSI 2.02 (bug?) « View previous topic :: View next topic » 
Author Message
Galichet
PostPosted: Wed Aug 08, 2001 1:52 am    Post subject: Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 69
Location: Paris - France

Hi all,

I have in input the following message
: "< MYMSG >< CH1 >HELLO< /CH1 >< /MYMSG >"

I want the following message in my outputQueue (I want to include the input XML message into a new XML message)
: "< MSG >< GEFAPP >< MYMSG >< CH1 >HELLO< /CH1 >< /MYMSG >< /GEFAPP >< /MSG >"

My compute node contains the following command :

Set OutputRoot.XML.MSG.GEFAPP = InputBody;

The result in my output Queue is
: "< MSG >< MYMSG >< CH1 >HELLO< /CH1 >< /MYMSG >< /MSG >"

I don't understand why my tag GEFAPP has disapeared ??
What is very strange is that in the trace generated just before the output node, this tag is well displayed ...



_________________
Eric Galichet
IBM Global Services
France

[ This Message was edited by: Galichet on 2001-08-08 02:54 ]

[ This Message was edited by: Galichet on 2001-08-08 02:55 ]

[ This Message was edited by: Galichet on 2001-08-08 02:56 ]

[ This Message was edited by: Galichet on 2001-08-08 02:56 ]
Back to top
View user's profile Send private message Send e-mail
bh
PostPosted: Wed Aug 08, 2001 3:49 am    Post subject: Reply with quote

Acolyte

Joined: 25 Jun 2001
Posts: 61

Hello,
I don'y think it's a bug but the right way MQSI is working is the following. To achieve your goal, you 'll have to write this sentence:

Set OutputRoot."XML"."MSG"."GEFAPP"."MYMSG" = InputRoot.XML.MYMSG;
Or this one
Set OutputRoot."XML"."MSG"."GEFAPP"."MYMSG" = InputRoot.XML.*;
Using the way you try you would need two compute nodes, the first one doing :
Set OutputRoot."XML"."GEFAPP"."A" = InputBody;
And the second one
Set OutputRoot."XML"."MSG"."B" = InputBody;
Don't ask me why, but it's the way it works.
Back to top
View user's profile Send private message
kolban
PostPosted: Wed Aug 08, 2001 5:02 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Good question and answer. It smells like a bug to me. I have a gut feel that ESQL in compute nodes does indeed know that it is working with XML (as opposed to blindly manipulating trees). I think that this may be causing the grief here. It could be InputBody - which is short-and for Root.*[LAST] and hence equates (in your case to) Root.XML may be being treated specially. What you coded "should" have worked.
Back to top
View user's profile Send private message
Armin
PostPosted: Thu Aug 09, 2001 9:55 am    Post subject: Reply with quote

Novice

Joined: 24 Jul 2001
Posts: 15
Location: Germany

I had a similar problem and this worked for me:

SET OutputRoot.XML.(XML.tag)MSG =InputBody;

Armin
Back to top
View user's profile Send private message
Galichet
PostPosted: Mon Aug 20, 2001 12:07 am    Post subject: Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 69
Location: Paris - France

You're right Armin, it works well with this syntax.
Thank you very much

_________________
Eric Galichet
SMABTP
France
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML Problem with MQSI 2.02 (bug?)
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.