| Author | 
		  Message
		 | 
		
		  | IQ Solutions | 
		  
		    
			  
				 Posted: Thu Mar 19, 2009 6:38 am    Post subject: How to make Test Client add MQRFH2 Header to test message | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Mar 2009 Posts: 6
  
  | 
		  
		    
			  
				I need my message to contain the MQRFH2 header.  Is there any way to make the Test Client add this header when it puts a test message on the Input Queue?
  Last edited by IQ Solutions on Fri Mar 20, 2009 6:32 am; edited 1 time in total | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Thu Mar 19, 2009 6:40 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				Which test client?  The 6.0 test client? Or the 6.1 Test client?
 
 
Or some random test client that you wrote yourself? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | IQ Solutions | 
		  
		    
			  
				 Posted: Thu Mar 19, 2009 6:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Mar 2009 Posts: 6
  
  | 
		  
		    
			  
				
   
	| mqjeff wrote: | 
   
  
	Which test client?  The 6.0 test client? Or the 6.1 Test client?
 
 | 
   
 
 
 
I'm using v6.1 of the Broker Toolkit, so I assume thats the version of the Test Client. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | HOMETOWN47 | 
		  
		    
			  
				 Posted: Thu Mar 19, 2009 8:59 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 25 Mar 2003 Posts: 34
  
  | 
		  
		    
			  
				| As far as I'm aware there is no way of adding additional headers other than the MQMD one. Probably easier to use something like RFHUTIL (IH03 support pac). | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | neeha_kashyap120 | 
		  
		    
			  
				 Posted: Thu Mar 19, 2009 9:40 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Apprentice
 
 Joined: 05 Mar 2009 Posts: 31
  
  | 
		  
		    
			  
				| You can add RFH headers using WMB, is that what you are trying to do? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | IQ Solutions | 
		  
		    
			  
				 Posted: Thu Mar 19, 2009 10:25 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Mar 2009 Posts: 6
  
  | 
		  
		    
			  
				
   
	| neeha_kashyap120 wrote: | 
   
  
	| You can add RFH headers using WMB, is that what you are trying to do? | 
   
 
 
 
I expect the client application to send these headers, so I don't want to write code that is only used in a test scenario.
 
 
The Test Client should allow me to create a message that mimics what a client is sending -- but in this case it looks appears to fall short. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | MQEnthu | 
		  
		    
			  
				 Posted: Thu Mar 19, 2009 9:29 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Partisan
 
 Joined: 06 Oct 2008 Posts: 329 Location: India 
  | 
		  
		    
			  
				
   
	| IQ Solutions wrote: | 
   
  
	| I need my message to contain the MQRFH2 header. Is there any way to make the Test Client add this header when it puts a test message on the Input Queue? | 
   
 
 
 
I understand you are using the test client comes with the WMB toolkit.. I have not worked much with test client but I know that we can set the MQMD fields ..and I think there should be a way to set the RFH2 header as well.. May be THIS will help you _________________ ----------------------------------------------- 
 
It is good to remember the past,
 
but don't let past capture your future | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | HOMETOWN47 | 
		  
		    
			  
				 Posted: Fri Mar 20, 2009 2:01 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 25 Mar 2003 Posts: 34
  
  | 
		  
		    
			  
				| The link to the help page in the previous post  indicates you can only add the MQMD header. As I said previously you best bet is to use something like RFHUTIL.... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | MQEnthu | 
		  
		    
			  
				 Posted: Fri Mar 20, 2009 3:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Partisan
 
 Joined: 06 Oct 2008 Posts: 329 Location: India 
  | 
		  
		    
			  
				
   
	| HOMETOWN47 wrote: | 
   
  
	| The link to the help page in the previous post indicates you can only add the MQMD header. As I said previously you best bet is to use something like RFHUTIL.... | 
   
 
 
 
How do you use the rfhutil with WMB test client?    _________________ ----------------------------------------------- 
 
It is good to remember the past,
 
but don't let past capture your future | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | HOMETOWN47 | 
		  
		    
			  
				 Posted: Fri Mar 20, 2009 3:27 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 25 Mar 2003 Posts: 34
  
  | 
		  
		    
			  
				| You don't - it's used instead of the Test Client. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | IQ Solutions | 
		  
		    
			  
				 Posted: Fri Mar 20, 2009 6:31 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 18 Mar 2009 Posts: 6
  
  | 
		  
		    
			  
				Thx for all the suggestions.
 
 
Unfortunately it looks like I have to include code to create the MQRFH2 structure if it doesn't exist, even though this is only occurrs when running a test using the WMBT Toolkit's test client.
 
 
Bill. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |