Posted: Thu Feb 09, 2006 11:58 am Post subject: Adding more data of the same name to a message
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
This is probably a simple problem but I am not clear as to the best way to do it.
If I have an incoming message with the following structure
<Dealer_Stock>
<Dealer_Stock_List>
<Stock_Item>
<Veh_reg>SSS111G</Veh_reg>
<Veh_Type>Cortina</Veh_Type>
<Veh_Price>1195.00</Veh_Price>
</Stock_Item>
.... Repeating a variable number of times
</Dealer_Stock_List>
</Dealer_Stock>
The flow gets the message and wants to add more items of the type <Stock_Item> to the list.
I'm sure there is a simple way to do this but at the moment it seems that I may have to decostruct the emssage first
/S _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Posted: Thu Feb 09, 2006 1:00 pm Post subject: A bit more info
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
Thanks for the hint. However I inadvertantly missed out a possible essential bit if info in my original post.
The Message Structue should actually look like this.
So, If I try to access the list usig your method as shown below, I get the following in the Trace output.
SET ...Dealer_Stock.Dealer_Stock_List.Stock_Item.[1].Veh_Type='Anglia';
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