You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mchaudhari <m....@accenture.com> on 2010/06/24 07:38:38 UTC

Can we send and recive Xml Message from aactive MQ using QTP (getting "full head error")

Problem1:-
1) I have an automation project in which I am using quick test professional
(QTP9.2).
2) It involves passing/receiving xml to/from system through JMS (as some
step/s in test case).
3) We are using ActiveMQ as a JMS server.
4) QTP supports VB script, so can it be possible to communicate with JMS
using normal VB script?
5) If not is there any other way to do that.

Problem2:-
1) I have heard of REST protocol which is supported by ActiveMQ and its a
normal HTTP protocol.
(POST: to send and GET: to receive)
2) We can send an Http request using VB script and I have successfully done
that.(i.e. sent an xml to queue)

Code:
Set g_objWinHttpRequest = CreateObject("WinHttp.WinHttpRequest.5.1") 'creat
request object
g_objWinHttpRequest.SetTimeouts 0, 0, 0, 0 'set request Timeout
g_objWinHttpRequest.Open "POST",
http://localhost:8161/demo/message/nameofQueue/type=queue&body=w_stringFomatedXml,
false 'send post Request

3) But while receiving an XML using get I am getting "full head error"
Reason might be:
1) GET request has limited size but my response xml is in range of 0.5 to 1
mb.
2) Also I am getting string formatted xml so its even bigger for a GET
request to accommodate.

Can anyone please help me out with this? In terms of,
1) How to overcome “full head error”
2) Any other way of JMS and QTP integration (message type is strictly big
strings formatted xmls)

Mahesh Chaudhari 


 
-- 
View this message in context: http://old.nabble.com/Can-we-send-and-recive-Xml-Message-from-aactive-MQ-using-QTP-%28getting-%22full-head-error%22%29-tp28979066p28979066.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Can we send and recive Xml Message from aactive MQ using QTP (getting "full head error")

Posted by LeeJMS <mu...@gmail.com>.
Hi Mahesh,

Please feel free to call me at +91 9845623601. Bangalore number.

-Murli

mchaudhari wrote:
> 
> Problem1:-
> 1) I have an automation project in which I am using quick test
> professional (QTP9.2).
> 2) It involves passing/receiving xml to/from system through JMS (as some
> step/s in test case).
> 3) We are using ActiveMQ as a JMS server.
> 4) QTP supports VB script, so can it be possible to communicate with JMS
> using normal VB script?
> 5) If not is there any other way to do that.
> 
> Problem2:-
> 1) I have heard of REST protocol which is supported by ActiveMQ and its a
> normal HTTP protocol.
> (POST: to send and GET: to receive)
> 2) We can send an Http request using VB script and I have successfully
> done that.(i.e. sent an xml to queue)
> 
> Code:
> Set g_objWinHttpRequest = CreateObject("WinHttp.WinHttpRequest.5.1")
> 'creat request object
> g_objWinHttpRequest.SetTimeouts 0, 0, 0, 0 'set request Timeout
> g_objWinHttpRequest.Open "POST",
> http://localhost:8161/demo/message/nameofQueue/type=queue&body=w_stringFomatedXml,
> false 'send post Request
> 
> 3) But while receiving an XML using get I am getting "full head error"
> Reason might be:
> 1) GET request has limited size but my response xml is in range of 0.5 to
> 1 mb.
> 2) Also I am getting string formatted xml so its even bigger for a GET
> request to accommodate.
> 
> Can anyone please help me out with this? In terms of,
> 1) How to overcome “full head error”
> 2) Any other way of JMS and QTP integration (message type is strictly big
> strings formatted xmls)
> 
> Mahesh Chaudhari 
> 
> 
>  
> 

-- 
View this message in context: http://old.nabble.com/Can-we-send-and-recive-Xml-Message-from-aactive-MQ-using-QTP-%28getting-%22full-head-error%22%29-tp28979066p29042693.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.