Forum Discussion
4 Replies
- taibcOccasional Contributor
Nastya_Khovrina : Thank you, I can get the response now. But, some time I got the response of previous message. Please see my image, I send the request with id 13545 but I got the response of the message 13544, if I send request a few times, I will get the response of correct message ID. I checked my webservice process (it return correctly), but I don't know why SOAPUI's response is incorrect
Hi taibc,
As a response, you get a message which is currently in the queue. What JMS provide do you use?
You can monitor the queue when you run the JMS test step in SoapUI.
For example, the vn.exchangerate.1.0 queue has 2 messages with:
messageId: 1 messageId: 2
You have this JMS test step in SoapUI:
jms://SOA_API::queue_vn.exchangerate.1.0::queue_vn.exchangerate.1.0
This test step sends a message with messageId:3 to the queue. In the response, you will see the following:
messageId: 1
because this message was first in this queue. And, the current queue state will be the following:
messageId: 2 messageId: 3
If you run the same step once again you will receive:
messageId: 2
The current queue state:
messageId: 3 messageId: 3
Finally, if you run the JMS test step one more time, you will get
messageId: 3
because this message is the first in the queue.
And so on...