|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  Problem with TDS Message Set | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | dipankar | 
		  
		    
			  
				 Posted: Tue Jun 13, 2006 4:32 am    Post subject: Problem with TDS Message Set | 
				     | 
			   
			 
		   | 
		 
		
		   Disciple
 
 Joined: 03 Feb 2005 Posts: 171
  
  | 
		  
		    
			  
				Hi,
 
WINDOWS XP, WBI MB5, CSD5
 
 
Input Message:
 
0000000110028A01533051200000000BBV SAS
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL
 
0000000110028A01533051200000000BBV SAS
 
0000000120028A01533051200000000BBV AAL
 
0000000110028A01533051200000000BBV SAS
 
0000000120028A01533051200000000BBV AAL
 
 
I have used the follwoing structure
 
   
	| Code: | 
   
  
	MSG_TYPE
 
   Composition: Ordered Set
 
   Content Validation: Closed
 
       Element: Records    min 1, max -1  Repeating Element Delimiter:<CR><LF>
 
                     |
 
                      Records_Type: Composition: Ordered Set
 
                     | Content Validation: Closed
 
                     | Data Element Seperation:Variable LnthElements Delimited
 
                     | Delimiter: <CR><LF>
 
                     |--> Element:RecordHeader min 1 max 1
 
                     |                   RecordHeaderType: Composition: Ordered Set
 
                     |                  Content Validation: Closed
 
                     |                  Data Element Seperation: Fixed Length
 
                     |                  Group Indicator: 000000011
 
                     |-->Element:   RecordDetails min 1 max -1 Repeating Element Delimiter:<CR><LF>
 
                                     RecordDetailsType: Composition: Ordered Set
 
                                                 Content Validation: Closed
 
                                                 Data Element Seperation: Fixed Length
 
                                                Group Indicator: 000000012
 
 | 
   
 
 
 
RecordHeader and RecordDetails also consists of several elements. I have mentioned their length as well.
 
 
Now when I consider the following input
 
   
	| Quote: | 
   
  
	0000000110028A01533051200000000BBV SAS
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL | 
   
 
It is working fine.
 
 
When I consider the following input 
 
 
   
	| Quote: | 
   
  
	0000000110028A01533051200000000BBV SAS
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL
 
0000000120028A01533051200000000BBV AAL
 
0000000110028A01533051200000000BBV SAS
 
0000000120028A01533051200000000BBV AAL
 
0000000110028A01533051200000000BBV SAS
 
0000000120028A01533051200000000BBV AAL | 
   
 
It is giving the following exception -
 
   
	| Quote: | 
   
  
	MRM parsing error. Message bit stream larger than expected.   
 
 
The bit stream of the message being parsed by the MRM parser is larger than expected for a message of this message type.   
 
 
The message bit stream has been incorrectly constructed, or the logical model is incorrect.   
 
 Ensure that the message is correctly packaged.   
 
 Ensure that the message properties are correct.   
 
 Ensure that the logical model for this message type is complete (the message set and message type should be quoted in previous messages).   | 
   
 
 
 
The 2nd repeat of Records element is not working. However I know the above stucture of message set in MQSI 2.1, CSD08 was working fine.
 
I have tried with different combination like Taged Fixed length instead of group indicator but all efforts are in vain.
 
 
Please let me know where I am doing wrong. Thanks in advance _________________ Regards | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | juddg | 
		  
		    
			  
				 Posted: Tue Jun 13, 2006 7:10 am    Post subject: Try the following | 
				     | 
			   
			 
		   | 
		 
		
		   Apprentice
 
 Joined: 22 Nov 2004 Posts: 33
  
  | 
		  
		    
			  
				Hi,
 
   Please try the following model (untested) :
 
 
   
	| Code: | 
   
  
	
 
MSG_TYPE
 
   Composition: Ordered Set
 
   Content Validation: Closed
 
   Data Element Separation : Tagged Delimited
 
   Delimiter : <CR><LF>
 
   Tag Data Separator: # (Dummy value not actually used) 
 
       Element: Records    min 1, max -1  Repeating Element Delimiter:<CR><LF> (Note that no tag is rquired)
 
                     |
 
                      Records_Type: Composition: Ordered Set
 
                     | Content Validation: Closed
 
                     | Data Element Seperation:Tagged Delimited
 
                     | Delimiter: <CR><LF>
 
                     | Length of Tag : 9
 
                     |--> Element:RecordHeader min 1 max 1 Tag: 000000011
 
                     |                   RecordHeaderType: Composition: Ordered Set
 
                     |                  Content Validation: Closed
 
                     |                  Data Element Seperation: Fixed Length
 
                     |-->Element:   RecordDetails min 1 max -1 Tag: 000000012 Repeating Element Delimiter:<CR><LF>
 
                                     RecordDetailsType: Composition: Ordered Set
 
                                                 Content Validation: Closed
 
                                                 Data Element Seperation: Fixed Length
 
 | 
   
 
 
 
Regards,
 
 
juddg | 
			   
			 
		   | 
		 
		
		  | 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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |