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 » manipulating XMLNS in eSQL

Post new topic  Reply to topic
 manipulating XMLNS in eSQL « View previous topic :: View next topic » 
Author Message
trongbx
PostPosted: Mon Dec 08, 2008 12:19 am    Post subject: manipulating XMLNS in eSQL Reply with quote

Novice

Joined: 23 Nov 2008
Posts: 21

This is the Input message.

<?xml version="1.0" encoding="UTF-8"?>
<evntf:EventNotification xmlns:evntf="http://www.ibm.com/websphere/bcg/2003/v1.0/xmleventnotification">
<evntf:StatusCode>100</evntf:StatusCode>
<evntf:StatusMessage>This message was delivered to the partner and received Receipt Acknowledgement</evntf:StatusMessage>
<evntf:EventMessageID>12264553644450067921300001008086E69840C60FC02373</evntf:EventMessageID>
<evntf:BusinessObjectID>Reflot_3D8_20081112001840162</evntf:BusinessObjectID>
<evntf:GlobalMessageID>075KA00000WAFER2127820080326_XS22XWP</evntf:GlobalMessageID>
<evntf:Timestamp>2008-11-12T02:02:44Z</evntf:Timestamp>
</evntf:EventNotification>


In my esql code:

DECLARE xml_ns NAMESPACE 'http://www.ibm.com/websphere/bcg/2003/v1.0/xmleventnotification';
DECLARE XMLEVENT_DOCID CHARACTER;
SET XMLEVENT_DOCID = InputRoot.XMLNS.EventNotification.xml_ns:GlobalMessageID;

However, the value of the XMLEVENT_DOCID is null.

Can any one tell me how i can get the data between the tag <evntf:GlobalMessageID>....</evntf:GlobalMessageID>


Thank you very much!
Back to top
View user's profile Send private message
keenlearner
PostPosted: Mon Dec 08, 2008 12:30 am    Post subject: Reply with quote

Acolyte

Joined: 24 Aug 2006
Posts: 62

Have look at the message and see the structure


Quote:
<?xml version="1.0" encoding="UTF-8"?>
<evntf:EventNotification xmlns:evntf="http://www.ibm.com/websphere/bcg/2003/v1.0/xmleventnotification">
<evntf:StatusCode>100</evntf:StatusCode>
<evntf:StatusMessage>This message was delivered to the partner and received Receipt Acknowledgement</evntf:StatusMessage>
<evntf:EventMessageID>12264553644450067921300001008086E69840C60FC02373</evntf:EventMessageID>
<evntf:BusinessObjectID>Reflot_3D8_20081112001840162</evntf:BusinessObjectID>
<evntf:GlobalMessageID>075KA00000WAFER2127820080326_XS22XWP</evntf:GlobalMessageID>
<evntf:Timestamp>2008-11-12T02:02:44Z</evntf:Timestamp>
</evntf:EventNotification>



EventNotification is also under the name space 'evntf' hence you need to use the namespace to access it.

Undertstand the message structure befoer accessing it.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 08, 2008 2:16 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Looks as if you are creating a new message flow. Any reason why you are not using XMLNSC?
Back to top
View user's profile Send private message
trongbx
PostPosted: Tue Dec 09, 2008 2:14 am    Post subject: Reply with quote

Novice

Joined: 23 Nov 2008
Posts: 21

Thank you very much for your reply.
I did the changes as below and the issue was fixed.

SET XMLEVENT_DOCID = InputRoot.XMLNS.xml_ns:EventNotification.xml_ns:GlobalMessageID;
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 » manipulating XMLNS in eSQL
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.