Forum Discussion

broeckxa's avatar
broeckxa
New Contributor
14 years ago

[SOLVED]JMSReplyTo

A SOAP Client is sending a JMS request to soapUI who acts as the mock SOAP server.
The client expects a reply back on the queue specified in the JMSReplyTo.
The endpoint in the soapUI "receiveJMSRequest" is f.i. jms://jmsSession::-::queue_Q1
What do I have to specify in the endpoint of the "sendJMSReply"?
Is there a way to retrieve the JMSReplyTo from the received JMS request and put it in the endpoint?

2 Replies

  • HI,

    if I understood you correctly you want to use JMSReplyTo header from received message and use it from soapui for endpoint for sending.
    In that case you can extract this value with Groovy Script in the middle

    def replyTo = context.testCase.testSteps["jms1"].testRequest.response.messageReceive.JMSReplyTo
    return "jms://sessionName::queue_"+replyTo.queueName

    and in next JMS test step use ${Groovy Script#result} in place of endpoint


    Hope this helps

    regards
    Nebojsa