ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Web Service availability Testing using HTTP Request Node.

Post new topic  Reply to topic
 Web Service availability Testing using HTTP Request Node. « View previous topic :: View next topic » 
Author Message
CHAN
PostPosted: Mon Mar 22, 2010 8:30 pm    Post subject: Web Service availability Testing using HTTP Request Node. Reply with quote

Novice

Joined: 22 Mar 2010
Posts: 12

Hi,
I am trying to create a message flow to test a webservice availability from the Browser.My requirement is that i need to invoke a message flow to see if the webservice is available or not and return the status of availability.I have the flow as follows:
HTTP input-->HTTP Request-->Compute node-->HTTP Reply

I am providing the webservice url in the HTTP request flow.
My actual requirement is that,
i will try to invoke the web service URL from web browser.That URL should return the status of webservice(available or not) without the actual response by invoking the above flow.So the above flow will not have any request message to test.I will put the above into the following order.
1. Type the service url in the browser.
2. That request from the browser has to be picked up by the message flow and return the status of the service availability on the browser itself.
I would really appreciate if any one would help me in getting that.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 22, 2010 9:04 pm    Post subject: Re: Web Service availability Testing using HTTP Request Node Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

CHAN wrote:
I would really appreciate if any one would help me in getting that.


You have sketched out a design above. In principle at least it should work, subject obviously to a number of factors (not least of which is how the webservice you're testing reacts).

How did it work in practice? What help exactly are you looking for?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
CHAN
PostPosted: Wed Mar 24, 2010 12:11 am    Post subject: Reply with quote

Novice

Joined: 22 Mar 2010
Posts: 12

The flow that i have shown is what i thought to make to get my requirement done.
Let me tell u the requirement as a task.Suppose that you type www.yahoo.com in a browser, it displays the basic content of Yahoo home page right.

The requirement i have to do is similar to above,instead of calling www.yahoo.com, a web service url is called.

The web service url that is typed in the browser should invoke a message flow(that is to be developed) that should return a status message say SERVICE IS AVAILABLE(if service is up) or SERVICE IS NOT AVAILABLE(if service is down) without the actual web service response message.
I want to use this flow in testing environment, so that testing team can use this flow to check if web service is available without returning back to me.

What we all know in common is that, the web service will return a response message once url is typed(if available),BUT i want to use a flow to invoke the service and return the status.

Hope you are clear now.That is a requirement for me.I am not doing it for myself.Please let me know a proper way of getting it done.
Back to top
View user's profile Send private message
CHAN
PostPosted: Wed Mar 24, 2010 12:23 am    Post subject: Reply with quote

Novice

Joined: 22 Mar 2010
Posts: 12

One more thing to mention.
I am not provided any WSDLs, Schemas to get it done.All i have is service URL with me.That is why i thought of using HTTP request node instead of SOAP Request.

IN the flow i posted above,the way it should work i thought is as follows:

1.HTTP input node should take the Web service URL(once hit from browser) and invoke the webservice using HTTP Request node.
2.The response that i get from HTTP Request node is the actual reponse.
3.I will replace the actual content with status message and send it as reply through HTTP reply node.

How should step 1 be done as HTTP input node does not have any request message.
OR is it not possible to do it in this way.Provide me alternate approach?

Hope it is clear now.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Mar 24, 2010 5:26 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

CHAN wrote:
How should step 1 be done as HTTP input node does not have any request message.


Well that's the question isn't it? The answer depends on how the webservice responds to invalid requests (and your request will be invalid as you don't have the WSDL). If it ignores them you'll get a false "service is down". If you get an error message back you'll need code to differentiate that from a 404 not found message.

CHAN wrote:
is it not possible to do it in this way.Provide me alternate approach?


I'd push back on the app team to provide the testers with a harness that can be used to check the service. Or better still put some monitoring on the web service so it tags if it's up or down. IMHO you're going to tie yourself in knots with this flow and not get reliable results.

Other opinions valid, other people have have better ideas.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
CHAN
PostPosted: Wed Mar 24, 2010 8:07 pm    Post subject: Reply with quote

Novice

Joined: 22 Mar 2010
Posts: 12

I came up with a thought that if i integrate message broker with external application server at the front end.Once it is done then there is a way(after viewing certain developer works) that the Message flows developed in the broker can be invoked when Web service URL is typed in the application server browser, then that request should be processed by Broker flows and return the status message to the browser.

The above is much similar like how web server and application server are intergrated to handle external client request.

Please correct me, if the approach i am thinking of will work or not?

I have one more thread posted related to https calls to web services.please view that..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Web Service availability Testing using HTTP Request Node.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.