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 » Explicit CAST to INTEGER

Post new topic  Reply to topic
 Explicit CAST to INTEGER « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Wed Aug 11, 2010 5:33 am    Post subject: Explicit CAST to INTEGER Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi,

I have a message set that defines a field routePointer as integer. The field is populated with numbers, Later on the flow I am trying to retrieve values from routPonter 3

Code:

DECLARE ssk INTEGER InputRoot.XMLNSC.OUTPUTS.ROUTES[CAST(InputRoot.XMLNSC.OUTPUTS.routePointer AS INTEGER)].transformationPointer;



Why do I have to do the cast and it doesn't want to work without the cast? What am I missing, or doing wrong ..

I am using MB7 fix pack 001. and the xsd has been imported and used in my flow.


Last edited by matuwe on Wed Aug 11, 2010 5:51 am; edited 1 time in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 11, 2010 5:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You don't say what version.

You don't say if you've deployed the xsdzip that describes the message set to the broker.

You don't say if you've associated the message set with the flow.

Does a user trace show that it parsed that field as an integer?
Back to top
View user's profile Send private message
matuwe
PostPosted: Wed Aug 11, 2010 5:54 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Oww sorry the threat update functionality was a bit slow.

The field is defined as integer

Code:

<xsd:element name="routePointer" type="xsd:integer"/>


and if I do a cast, There is a value of 1. I have not tried to use trace, but just tried the CAST to INT which worked.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 11, 2010 7:34 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There are two possibilities:
1) The xsdzip is not being used
2) the element is being processed as a self-defining element

Using a CAST certainly avoids determining which of those two possibilities is occurring.

Taking a user trace will tell you explicitly which of those two possibilities is occurring.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Aug 11, 2010 9:42 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Have you set the parser property 'Build tree using XML Schema'?

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ad67030_.htm
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 » Explicit CAST to INTEGER
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.