Author |
Message
|
matuwe |
Posted: Wed Aug 11, 2010 5:33 am Post subject: Explicit CAST to INTEGER |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Aug 11, 2010 5:35 am Post subject: |
|
|
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 |
|
 |
matuwe |
Posted: Wed Aug 11, 2010 5:54 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Aug 11, 2010 7:34 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Wed Aug 11, 2010 9:42 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
|