Posted: Thu Jun 11, 2009 9:19 am Post subject: "Message Broker Basics" example help needed
Apprentice
Joined: 11 Jun 2009 Posts: 37
Hello,
I am reltively new to WS Message Broker (version 6.1) and am attempting to complete the examples in the IBM Redbooks "Message Broker Basics". Even though the book explains an older version of Message Broker (version 6.0) and not the version I am using (version 6.1).
Regardless, I am doing the examples in chapter 6, specificlly the example that deal with Message Mapping (for clarity "The Mapping Bookstore" example) and am running into a problem.
In this example "The Message Flow" takes in an xml, "Book Order" as input defined as such:
And in my mapping output I have a Total_Price field which should simply sum the values in the Book_Details.Book_Price fields.
Of course this is not working (which explains why I am writing) and apparently the source of the problem is related to a with "incompatable types" (though I am new and am not 100% sure).
Regardless, I have defined the Book_Price field (a component in Book_Details array) as a DECIMAL, but I believe when calculating the sum with ....
Total_Price --> fn:sum($source/Create_Book_Order_MSG/Book_Details/Book_Price)
It is being summed as a CHARACTER and not as a DECIMAL which is causing the flow to exception out.
Not sure if anyone has attempted the "Message Broker Bascis" examples (on a side note .. anyone have a good 6.1 Tutorial .. that too has examples??) but I could really use some guidance.
Again I'm new .. so any help would e appreciated.
Thanks
RecoverableException BIP2451E: Incompatible types '''7.99''' and '''15.99''' for operator ''+''. An attempt was made to combine the values '''7.99''' and '''15.99''' using the operator ''+''.
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