File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Check if CXF Webservice is alive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Check if CXF Webservice is alive" Watch "Check if CXF Webservice is alive" New topic
Author

Check if CXF Webservice is alive

Ignacio Peluffo
Greenhorn

Joined: Feb 07, 2012
Posts: 2
Hi all!

I have a basic question related with Webservices implemented with CXF.

How can I check if a Webservice is alive before using it? I searched in the forum, Google and I couldn't find any information about this...

Thanks in advance!
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
There are a couple options that you can use:
  • If the web service is a SOAP web service, or a REST web service with a WADL, then you can issue a HTTP HEAD request for the WSDL or WADL document.
  • Implement a special "ping" operation (SOAP) in the web service, or "ping" resource (REST), that you call (SOAP) or GET (REST).

  • Best wishes!


    My free books and tutorials: http://www.slideshare.net/krizsan
    Ignacio Peluffo
    Greenhorn

    Joined: Feb 07, 2012
    Posts: 2
    Ivan Krizsan wrote:Hi!
    There are a couple options that you can use:
  • If the web service is a SOAP web service, or a REST web service with a WADL, then you can issue a HTTP HEAD request for the WSDL or WADL document.
  • Implement a special "ping" operation (SOAP) in the web service, or "ping" resource (REST), that you call (SOAP) or GET (REST).

  • Best wishes!


    Thank you very much for your response.

    Finally, I've decided to implement a special "ping" operation. However, I tried the other option but it didn't work really well because I had some problems with the server certificate (the communication was throw https).

    Thanks again!
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Check if CXF Webservice is alive