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 » DECLARE statement whines when migrated from WMB5 to WMB6

Post new topic  Reply to topic
 DECLARE statement whines when migrated from WMB5 to WMB6 « View previous topic :: View next topic » 
Author Message
Boolean
PostPosted: Wed May 30, 2007 12:04 am    Post subject: DECLARE statement whines when migrated from WMB5 to WMB6 Reply with quote

Acolyte

Joined: 05 Jun 2003
Posts: 56
Location: Sweden

When importing an ESQL flow file built in WBIMB 5.0 (XP) into a WMB 6.0 (Linux) Toolkit I get warnings that a NAMESPACE is not declared.

Declared in module as:
DECLARE NS NAMESPACE 'http://www.baseline.se/ns/eventdata';

Used in procedure like:
-- References
-- Set a reference to the input XMLNS tree - first events element
DECLARE InputEquipmentRef REFERENCE TO InputRoot.XMLNS.NS:events[1];

Works fine in the previous version but generates warnings:
Namespace constant "NS" has not been defined
in the latter version.

Does someone recognize this?
_________________
/ Boolean
Back to top
View user's profile Send private message
Boolean
PostPosted: Wed May 30, 2007 12:47 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jun 2003
Posts: 56
Location: Sweden

One of my colleagues had already solved this one.

Use curly brackets in the reference:

DECLARE InputEquipmentRef REFERENCE TO InputRoot.XMLNS.{NS}:events[1];
_________________
/ Boolean
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed May 30, 2007 1:01 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Boolean,
Boolean wrote:
DECLARE InputEquipmentRef REFERENCE TO InputRoot.XMLNS.{NS}:events[1];
You would need this when you declare your namespace with a single quote.

What you should be doing using is
Code:
DECLARE NS NAMESPACE "http://www.baseline.se/ns/eventdata";
Then there is no need for the curly braces.

Regards.
Back to top
View user's profile Send private message Send e-mail
Boolean
PostPosted: Wed May 30, 2007 2:39 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jun 2003
Posts: 56
Location: Sweden

That's a much better solution.

Tnx!
_________________
/ Boolean
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 » DECLARE statement whines when migrated from WMB5 to WMB6
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.