Hi Jeff,

I certainly agree with you that in general a generic ping method should not assume Axis - but in my case for now it is Axis and it is over HTTP. In any case, what I actually did is what you are suggesting below using a GET and checking out the return code of a method call. If that is the best way to check if the engine is up and running then I am
all set :)

Thanks again for all of your feedback

Walker, Jeff wrote:
Well,
Yes, that is the simplest. For Axis, you can hit do a GET to
http://localhost:8080/axis/servlet/AxisServlet to get a list back of
available web services hosted by that Axis instance. (If you get any
information back, the Axis engine is of course up and running, but your
particular web service may not be deployed).

But you're client shouldn't assume the engine in use is always Axis.
What if it's a .NET web service your checking? Also, what if you're
hitting a web service not over HTTP, but over SMTP or some other
protocol? For these reasons, I think your supposed to write a ping()
method on your interface that takes a parameter and returns some
information, like the number of services available, their names, etc.

Ultimately, your supposed to connect your service to a service registry
to get this kind of information, and you ask the registry is this
particular web service up and available. But UDDI is very hard to work
with.
-jeff

-----Original Message-----
From: Demetris G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 5:57 PM
To: axis-user@ws.apache.org
Subject: Re: Axis engine


Hi Jeff,

thanks for the pointers. I was wondering how this can be done programmatically
from inside a client application. Any ideas ?

Thanks

Walker, Jeff wrote:
I run Tomcat 5.5.20 with Axis 1.3,
and I hit this: http://127.0.0.1:8080/axis/
Click on the 'List' link to see the web services you currently have
deployed.

Also, run the 'Happy Axis' test page, to make sure the correct
versions
of the jars Axis needs have been deployed as well.
http://localhost:8080/axis/happyaxis.jsp

For Axis2, I'm sure it's similar.
-jeff





-----Original Message-----
From: Demetris G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 4:58 PM
To: axis-user@ws.apache.org
Subject: Axis engine


What is the easiest way to test (check) if an Axis engine is running ?
Send a POST or GET to it and catch an exception back ?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to