|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
IIB9: Mapping Node, DFDL Domain with CRC32 |
« View previous topic :: View next topic » |
Author |
Message
|
akil |
Posted: Tue Oct 21, 2014 10:24 pm Post subject: IIB9: Mapping Node, DFDL Domain with CRC32 |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
Hi
I have a message model in the DFDL domain that creates an output such as the following
Code: |
U03005~TraceID~SourceID~TimeStamp~Userid~CustomerID~ Authenticator1~Authenticator2~Authenticator3~RechargeAmount~Filler1~Filler2~Filler3~Checksum
|
The last element of the model is a Checksum that's a CRC that's computed for for all the elements till Filler3 (including the trailing ~ after Filler3 & before Checksum).
I am using the GDM to create all the elements (except CheckSum). For the CheckSum I am currently having a JCN after the mapping node, that compute the CRC and appends it at the end of the message. This is alright, but I have to disable the validation at the Mapping Node (since CheckSum is mandatory but its not getting created in the GDM).
Is it possible to compute the CRC in the GDM itself? For this, I'll need to be sure of the order in which the transforms are getting applied , since the CheckSum needs to be computed at the very end, and I'll need a way to serialise the partially created model ..
Any ideas? _________________ Regards |
|
Back to top |
|
 |
kimbert |
Posted: Wed Oct 22, 2014 1:05 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I think you are doing it the correct way. If the CRC is calculated from the bitstream then the Mapping node cannot calculate it - the Mapping node operates on the logical message tree.
It may be possible to invent a solution that uses two or more Mapping nodes, but I think this type of problem is best solved using a procedural language. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
akil |
Posted: Wed Oct 22, 2014 9:49 am Post subject: |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
Thank you for the confirmation..
This is my first use case for the validation node, till date I always used the validation properties of the compute / mapping nodes themselves , and didn't ever need to use the standalone validation node  _________________ Regards |
|
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
|
|
|
|