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 » "Message Broker Basics" example help needed

Post new topic  Reply to topic
 "Message Broker Basics" example help needed « View previous topic :: View next topic » 
Author Message
NiceGuy
PostPosted: Thu Jun 11, 2009 9:19 am    Post subject: "Message Broker Basics" example help needed Reply with quote

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:
Code:
<Create_Book_Order_MSG>
<Customer_ID>0123456789</Customer_ID>
<Order_Date>2002-10-20 12:00:00</Order_Date>
<Airmail>Yes</Airmail>
<Book_Details>
<ISBN>0123456789</ISBN>
<Book_Price>15.99</Book_Price>
<ISBN>1425112342</ISBN>
<Book_Price>7.99</Book_Price>
<ISBN>9736316345</ISBN>
<Book_Price>25.99</Book_Price>
</Book_Details>
</Create_Book_Order_MSG>


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
Back to top
View user's profile Send private message
NiceGuy
PostPosted: Fri Jun 12, 2009 11:16 am    Post subject: Reply with quote

Apprentice

Joined: 11 Jun 2009
Posts: 37

Here is a portion of the trace output.

Code:
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 ''+''.


Any Ideas?
Thanks
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 » "Message Broker Basics" example help needed
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.