|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Sample CSV Msg Set |
« View previous topic :: View next topic » |
Author |
Message
|
javaforvivek |
Posted: Mon Jan 23, 2006 10:47 pm Post subject: Sample CSV Msg Set |
|
|
 Master
Joined: 14 Jun 2002 Posts: 282 Location: Pune,India
|
Hi,
While working on WMB6 Samples Gallary, I came across a very good sample that is useful for all the CSV Message users.
I tried some these messages on my own, and for message CSV_6, I found that there is a problem in the sample project given.
There is a group called 'streetaddress2' which contains two group refernces 'streetaddressQuotes' and 'streetaddressNoQuotes'.
The Logical Composition of this 'streetaddress2' group is given as closed sequence. But when I tried to process the given sample message of type CSV_6 (CSV_msg6.enqueue), it gave me parserexception.
Here is the sample message
Code: |
2005-04-01,X123456IB7,customer details
Bob,Dyson,"House of the Rising Sun, 1, Desolation Row",Orlando,FL,32802,HYT-457-AX
Jimmy,Pace,"1002, Misty Mountain Drive",New York,NY,10001,ADU-239-BX
Ralf,McCartney,67 Penny Lane,Las Vegas,NV,89125,JUI-854-CF
Elvis,John,3 Yellow Brick Road,Chicago,IL,60699,GGY-118-AS
Rick,Clayton,"461, Ocean Boulevard",Miami,FL,33101,LOP-212-TY
5
|
It parses first two customer lines and third line till lastname element. But since the address is defined as sequence, it couldnt parse it.
I made a small change in my CSV Msg Set - I set the logical composition of 'streetaddress2' to closed choice and it started working. It parsed the whole message correctly and converted it into XML successfully.
It might be a minor thing, but has anybody else come across the same issue? If not, then can somebody try it and confirm my point? _________________ Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth. |
|
Back to top |
|
 |
wooda |
Posted: Tue Jan 24, 2006 5:34 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
Hi javaforvivek,
It's great to hear you have been using the sample and find it useful.
You are quite correct that there was a bug in CSV_6 and it was exactly as you described.
You should find that this problem has been fixed in the next service release.
Thx,
Alex |
|
Back to top |
|
 |
javaforvivek |
Posted: Tue Jan 24, 2006 9:14 pm Post subject: |
|
|
 Master
Joined: 14 Jun 2002 Posts: 282 Location: Pune,India
|
Quote: |
You should find that this problem has been fixed in the next service release.
|
Can you please give me the link for downloading this fix? Is it the same 1.2GB fix (FP 6.0.0.1) for Toolkit? _________________ Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth. |
|
Back to top |
|
 |
wooda |
Posted: Wed Jan 25, 2006 1:03 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
Yes toolkit FP 6.0.0.1 should fix this problem.
Thx,
Alex |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|