• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Check if CXF Webservice is alive

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 2198
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
     
    Ignacio Peluffo
    Greenhorn
    Posts: 2
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    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!
     
    You showed up just in time for the waffles! And this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    reply
      Bookmark Topic Watch Topic
    • New Topic