Posted: Wed Jan 22, 2014 12:50 pm Post subject: ESQL-Select: XML attributes are lost after SELECT statement
Novice
Joined: 22 Jun 2010 Posts: 10
Hi all,
I am trying to run this code against a MRM-parsed message:
Code:
SET Environment.ship_to[] = SELECT * FROM rInHeader.PARTY_ID_DETAILS[] AS st WHERE st.identification_of_name = 'ST';
SET rOutHeader.customerNumber = Environment.ship_to[1].identification_code; -- retruns a number => correct
SET rOutHeader.customerGroup = Environment.ship_to[1].identification_code.type_of_identification_code; => returns NULL, but a string should be there
type_of_identification_code is an XML attribute.
When debugging my code, I can see the XML attribute in the message tree of the incoming message, but it is not getting copied to the environment when running the code listed above.
When you park stuff in the Environment you first need to specify the relevant PARSER. The environment has no default parser set. _________________ MQ & Broker admin
Yay. Doing it right helps from time to time. (I never had this issue ever before and I am copying a lot of stuff to the Environment (with attributes)...)
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