| Author | 
		  Message
		 | 
		
		  | ask5 | 
		  
		    
			  
				 Posted: Thu Aug 17, 2006 1:15 pm    Post subject: Reading RFH2 Header | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 17 Aug 2006 Posts: 3
  
  | 
		  
		    
			  
				I am using VB.Net 1.1 to Read a message from MQ. MQ Client is V 5.3
 
The Message format is RFH2.
 
 
My problem is, I dont get the full message when I do 
 
 
Dim StrReturn as String
 
StrReturn = ResponseMessage.ReadString(ResponseMessage.MessageLength)
 
 
the message seems to be truncated after first 3 characters.
 
whereas I get correct ResponseMessage.MessageLength = 1024
 
 
 
Can anyone tell me where I am going wrong.
 
Is there any article which tells How to Read RFH2 message in VB.NET
 
 
any help is appriciated
 
 
AK | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vennela | 
		  
		    
			  
				 Posted: Thu Aug 17, 2006 1:35 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India 
  | 
		  
		    
			  
				| There is a way to suppress RFH2 header for non-JMS clients by setting the targetClient property and also there are some other ways too. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ask5 | 
		  
		    
			  
				 Posted: Thu Aug 17, 2006 1:43 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 17 Aug 2006 Posts: 3
  
  | 
		  
		    
			  
				Thanks for the Reply,
 
 
Are talking about setting targetClient at the application which is putting message with RFH2 header on MQ?
 
 
what are the other ways? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mvic | 
		  
		    
			  
				 Posted: Thu Aug 17, 2006 2:15 pm    Post subject: Re: Reading RFH2 Header | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 09 Mar 2004 Posts: 2080
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ask5 | 
		  
		    
			  
				 Posted: Fri Aug 18, 2006 5:43 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 17 Aug 2006 Posts: 3
  
  | 
		  
		    
			  
				| is it possible using MQ V 5.3? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Fri Aug 18, 2006 6:03 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| ask5 wrote: | 
   
  
	| is it possible using MQ V 5.3? | 
   
 
 
 
MQRFH2 headers have been supported since at least v5.1, and probably v5.0. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |