asn_007
8 years agoContributor
Remove RFH2 Headers in Groovy Code/SOAPUI Request Tab properties
Somehow SOAPUI is adding RFH2 headers to the outgoing messages sent to MQ. How can this be disabled so that it send just plain xml without any additional RFH2 header prefixed to the message. I t...
- 8 years ago
I could not make it to work by setting the JMS properties in the SOAPUI Request tab but in the groovy I could do the below to overcome the issue.
def jmsEndpoint = new JMSEndpoint("jms://${session}::${channelType}_${send}")
def hermes = HermesUtils.getHermes( context.testCase.testSuite.project, jmsEndpoint.sessionName)
def jmsConnectionHolder = new JMSConnectionHolder( jmsEndpoint, hermes, false, null ,null ,null)
Session queueSession = jmsConnectionHolder.getSession();
Queue queueSend = jmsConnectionHolder.getQueue( jmsConnectionHolder.getJmsEndpoint().getSend() );
queueSend.setTargetClient(1);