cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Community Hero

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

@Emil91,
I have tried with the link given by you only(you should be able to find there how to call) and able to hit the REST service of ActiveMQ. Of course, since I do not have any data, got HTTP Response code 204 which No content. This my first time to call ActiveMQ.


Regards,
Rao.
Contributor

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

@nmraoHi, but did you call it from soapUI? Because this is what I'm looking for, I need to automate my tests :/

 

At this moment I can send something to queue from activeMQ, and i can see result in (application server logs) but I really need to be able to send such requests using soapUI Smiley Tongue.

 

I've tried HermesJMS, I've followed these instructions

- https://www.soapui.org/documentation/jms/config.html

- https://www.soapui.org/jms/getting-started.html

I have done everything except installing activeMQ local on my machine, I'm logging to it by browser, anyway seems like it's not working anymore? Last update is from 2004 year pitty Smiley Indifferent, I though that I will be able to send JMS using soapUI, if it's possible somehow, please can you explain me a little more about that? How exactly i can do it? Are there any tools? Or perhaps I'm doing something wring during the configuration of HermesJMS, low chance, cuz i followed almost everystep, and I received error during configuration of providers.

 

 

Thanks in advance for support

Best regards

 

Emil

Community Hero

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

 This documentation may be a little more up to date? It is for ReadyAPI and HermesJMS with ActiveMQ. ReadyAPI / HermesJMS




---

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

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

@msiadak Well I tried it in Ready api aswell, It's not working at all, throwing errors all the time when I'm trying to configure it, can't even add Queue in hermesJMS ;/ Tried several different configurations, seems like something is not supported anymore Smiley Indifferent... Have any Idea??? How i can send JMS from soapUI to activeMQ?

Community Hero

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

@Emil91, as you mentioned in your previous posts, ActiveMQ supports REST. You need to call their REST services and I believe your application talks to ActiveMQ.
How to call REST of ActiveMQ? No different, you need to the host and http port details of ActiveMQ and details available in the link you posted.

How I tested?
Got ActiveMQ running, called it used Post Man where I got 204 http code which is ok as I do not have any data.


Regards,
Rao.
Contributor

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

@nmrao Smiley Tongue but u have activeMQ locally installed on your machine, and I'm using remote activeMQ in the browser, i believe there is difference, and lack of posts how send JMS to remote activeMQ

Community Hero

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

That is what I was trying to say. No jms communication from client side i.e., from with in soapui. Client still uses REST service of activeMQ. and Your application must be communicating directly with activeMQ.
ENDPOINT to be used in soapui
http://activeMQhost/ip:8161/api/message/TEST?type=queue

with credentials.


Regards,
Rao.
Contributor

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

@nmrao  You sure this is correct ENDPOINT: http://activeMQhost/ip:8161/api/message/TEST?type=queue   ??

 

I was using http://192.168.0.000:81611/api/message <-- Ip is only example, same about port, but I don't have clue what 

 

TEST?type=queue is, perhaps "TEST" is the name of queue??? or I'm wrong Smiley Tongue?

 

Anyway I Wonder If i need to set up in activeMQ config so i can send messages via REST, perhaps it should be default set, but

 

seems like someone was doing some changes in activeMQ which I'm using, so I'm not sure if REST protocol is set up.

 

By the way yesterday i tried to configure hermesJMS, and it seems like I'm close to set it up, I'm getting such error atm: 

hermes.hermesException
Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [root exception is java.rmi.ConnectException: non-JRMP server at remote endpoint]

 

Well I've done some research on google, and seems like JMX thing is not activated? in configuration of my activeMQ? If that would solve my problems I would be glad Smiley Tongue

 

Thx for suport, cheers

 

Best regards

Emil

 

Contributor

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

Hmm finally I found way to send something into my aciveMQ using soapUI REST service... I used such url

 

http://admin:admin@192.168.XX.XXX:XXXX/api/message?destination=queue://example.queue1

 

And seems like its arriving in activeMQ queue, but my service is throwing an error: 

 

[ERROR]: Sending nonsuccessful response:
Unable to parse provided JSON, exception message:
Unexpected end-of-input at input index 0 (line 1, position 1), expected JSON Value:#012#012^

 

is there any way that soapUI is adding some sort of additional metadata to the request? And service which I'm testing can't parse it?? Smiley Indifferent

 

This is how my Json script looks like, and I'm trying to send it through soapUI REST:

 

{"uuid": "id", "requestType": "geocode",
"data": {
"source": "geoportal",
"address": "Gdańsk Grunwaldzka 25"
}
}

 

Well I tried to send it as string and as JSON, same result, thx in advance for advices, cheers

 

Best regards

Emil

Contributor

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

@nmraoWell i figured out how to send message as REST post request, and it's going directly there where it should, Smiley Tongue seems like I don't really need hermesJMS, the only thing which I have to now is to consume message from topic, to be able to see response after i send request, so i can put some assertions and finally start creating some groovy scripts Smiley Tongue...

 

@msiadakThank You for link to new hermesJMS article, well seems like it's working but perhaps I'm doing something wrong, anyway i found a way to send such request using REST and post request, thanks for support.

 

Best regards

Emil

New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors