Ask a Question

Is it possible to send request and answer through activeMQ using soapUI? Requ and answ is in JSON

SOLVED
Emil91
Contributor

Is it possible to send request and answer through activeMQ using soapUI? Requ and answ is in JSON

Hey there guys,

 

I wonder if it's possible to somehow configure soapUI with activeMQ? That would be awesome and save me alot of time. As everyone know it's not easy to find new tools and learn from the begin.

 

What I want to do is use service in soapUI NG pro which is going through activeMQ, i heard about "HermesJMS" but I'm not sure if this app is still available and serviced.

 

I have both request and response service in JSON, I would like to load requests and answers in my soapUI ng pro and make some steps for requests and answers... Well I think it will be pain in the ass, but I have to try, thanks in advance guys for sharing your ideas, I really appreciate that, cheers.

 

Best regards

Emil

 

29 REPLIES 29
nmrao
Champion Level 3

You mean REST API over JMS? Never heard that.


Regards,
Rao.
groovyguy
Champion Level 0

Could use some more specific details on your use case.

 

Do you have a service that you use SoapUI to test, and that service writes to ActiveMQ? Are you looking for a way to build something in SoapUI to query/test that your service wrote successfully to ActiveMQ?




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!

@groovyguyExactly I've got service which writes to activeMQ, and I'm  looking for way to build tunnel between soapUI and activeMQ, for example I have requests , and I can send it to activeMQ(server) from queue to specific topic, but that's not the point.

I want to be able to send such requests with soapUI, and also I would like to be able to read results of send requests 😐 Well it sounds complicated but I would be really happy if it's possible..

 

 

@nmraoCommunication of service takes place using activeMQ server, using queue and topic, send data to queue and receive on topic.

I send a request via activeMQ with JSON, and receives a response from with JSON, that is such a protocol.

Is it possible to send such requests via soapUI Ng pro? And also integrate with activeMQ so I can listen to what is posted on the activeMQ topic? If yes that would be great, thank you for your time ;d, perhaps I'm missing something.

 

 

Thank you guys for the support

 

Best regards

Emil

groovyguy
Champion Level 0

@Emil91: I don't think there will be a native way to do this in SoapUI. Rather, you will likely need to write a groovy script that can interface with ActiveMQ and its consoles. A quick google search shows people have done this previously with groovy and there are examples out there. 


Here's one that uses JMX and groovy to query ActiveMQ: Listing ActiveMQ queues

 

The above example seems to list queues, but I am not 100% sure you can read from a queue without popping the message. I am not sure if that would be feasible for a test or not. 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
nmrao
Champion Level 3

@Emil91, you did not clarify to the point of my previous reply.

Is it that you want to send a plain message over JMS or Is REST over JMS ?

I know that it is possible to send a plain message or Soap message over JMS.

What is your use case?


Regards,
Rao.

@nmraoWell this are the protocols supported by activeMQ :

 

So seems like in my case I have to send REST over JMS(activeMQ) 😐 I'm afraid it's impossible to do in soapUI? Can't find many posts on google.. thx in advance for answer, cheers.

 

Best regards

Emil

nmrao
Champion Level 3

@Emil91, thank for the details.
In my understanding REST works on HTTP methods. So, how does it communicate over jms of those http methods? That is where it is confusing to me.


Regards,
Rao.
nmrao
Champion Level 3

Based on the links you provided, looked at the REST. If the application is running, you should be able to call REST API provided by ActiveMQ. This is what my little understanding from the REST ActiveMQ page.

What is the difficulty for you at the moment?


Regards,
Rao.

@nmraoHmm, and how exactly I can call that REST API? ; d, what exactly I need to do, it's separate thing? Or i can call such API in soapUI :P?
I'm confused a little bit perhaps don't understand this, atm I created REST project, But I have problem the link to the service start with tcp://, but I can't load such link in REST project, so I had switch it to http://.
Well i think in this case it doesn't matter? Cuz REST works on http aswell yes?, anyway to the subject, When I'm trying to invoke method for example I'm trying to send "ping" I'm recieving "Error getting respons: org.apache.http.client.ClientProtocolException" :|,  I was told that in link to my activeMQ i'm missing path to the queue , but the question is how to declare such path?
Perhaps It's impossible? I tried few things and still no results :|... It's pity that this service is going through activeMQ its pain in the ass.. If you have any idea please share it, thanks you in advance, cheers.

 

cancel
Showing results for 
Search instead for 
Did you mean: