Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6329301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:38:05+00:00 2026-05-24T17:38:05+00:00

How can I check if any web service is accessible ? I can see

  • 0

How can I check if any web service is accessible ?
I can see the list of service also I know the method names present in the web service.But I don’t know which parameters the method accepts.
Here is the method present in the web service

 public OMElement getChildren(OMElement paramOMElement)
  {
     Object localObject2 = paramOMElement.toString();
     // Some other stuff 
  }

I tried something like http://machine_name/war_name/services/service_name/getChildren?a
and got following error

soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
−
<faultstring>
Umarshaller error: Error during unmarshall <getChildren><a></a></getChildren>; nested exception is: 
    edu.harvard.i2b2.common.exception.I2B2Exception: Umarshaller error: Error during unmarshall <getChildren><a></a></getChildren>; nested exception is: 
    org.apache.axis2.AxisFault: Umarshaller error: Error during unmarshall <getChildren><a></a></getChildren>; nested exception is: 
    edu.harvard.i2b2.common.exception.I2B2Exception: Umarshaller error: Error during unmarshall <getChildren><a></a></getChildren>
</faultstring>
<detail/>
</soapenv:Fault>   

Is this error mean I am able to access the service but sending wrong arguments ?
Also the service dont have WSDL file.
How can I check whether the service is accessible or how can I find out the exact parameters which are required ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:38:06+00:00Added an answer on May 24, 2026 at 5:38 pm

    Well you need to send a request to the service and see if there is a response and there is no exception and thus make sure that the server is running..
    Nt comfortable with coding in java but here is the c# excerpt:

    function bool CheckIfServiceIsAlive(string url)
    {
    var isServiceUrlAlive= false;
                var req = WebRequest.Create(url);
                if (!string.IsNullOrEmpty(proxyServer))
                {
                    var proxy = new WebProxy(proxyServer, 8080) { Credentials = req.Credentials };  //if you need to use a proxy
                    WebRequest.DefaultWebProxy = proxy;
                    req.Proxy = proxy;
                }
                else
                {
                    req.Proxy =  new WebProxy();
                }
                try
                {
                    var response = (HttpWebResponse)req.GetResponse();
                    isServiceUrlAlive= true;
                }
                catch (WebException) { }
    
                return isServiceUrlAlive;
    

    There might be easier solutions for java like using the Apache Commons UrlValidator class

    UrlValidator urlValidator = new UrlValidator();
    urlValidator.isValid("http://<your service url>");
    

    or use a method like this that gets the response code

    public static int getResponseCode(String urlString) throws MalformedURLException, IOException {
        URL u = new URL(urlString); 
        HttpURLConnection huc =  (HttpURLConnection)  u.openConnection(); 
        huc.setRequestMethod("GET"); 
        huc.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)");
        huc.connect(); 
        return huc.getResponseCode();
    }
    

    or try this: http://www.java-tips.org/java-se-tips/java.net/check-if-a-page-exists-2.html

    Tell me which one worked for you..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this sample but its for web. Can any one check this proj.
I can easily check IP addresses programmatically, but is there any way to set
Just wondering is there any way I can check whether the url links to
Is their any way can I check in PHP that my brower(s) FF/Chrome/IE/Safari popup
How can I check if I have any uncommitted changes in my git repository:
Is there any javascript algo that i can used to check for a website
Can Selenium or any other automated tool check for the proper positioning of elements
Are there any benchmarks that can be used to check if implementation of ANN
I can check for iPhone with this code: (navigator.userAgent.match(/iPhone/i)) But I want to target
I have a winform app that calls a web service to check for updates.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.