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

  • SEARCH
  • Home
  • 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 8392059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:25:20+00:00 2026-06-09T19:25:20+00:00

This means i would NOT use SoapUI, or any other Application to test the

  • 0

This means i would NOT use SoapUI, or any other Application to test the WSDL.

i am looking at wsdl4j as this is potentially the only one out there, unless i am missing something available in jdk.

Here is what i tried:

class : WSDLtestvip.java

import java.net.HttpURLConnection;
import java.net.URL;

public class WSDLtestvip {



    public boolean isWSDLAvailable(String wsdlAddr) {
        HttpURLConnection c = null;
        try {
            URL u = new URL(wsdlAddr);
            c = (HttpURLConnection) u.openConnection();
            c.setRequestMethod("HEAD");
            c.getInputStream();
            return c.getResponseCode() == 200;
        } catch (Exception e) {
            return false;
        } finally {
            if (c != null)
                c.disconnect();
        }

    }
}

class: WsdlTester.java

public class WsdlTester {

    public static void main(String[] args) {

        WSDLtestvip wstvip = new WSDLtestvip();
        boolean result = wstvip
                .isWSDLAvailable("https://a.b.c/aaa?wsdl");

        System.out.println(result);

    }

}

and it gives me false ALL the time
How can i use the same for https

  • 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-06-09T19:25:21+00:00Added an answer on June 9, 2026 at 7:25 pm

    Suggestion:

        private boolean isWSDLAvailable(String wsdlAddr) {
                HttpURLConnection c = null;
                try {
                    URL u = new URL(wsdlAddr);
                    c = (HttpURLConnection) u.openConnection();
                    c.setRequestMethod("HEAD");
                    c.getInputStream();
                    return c.getResponseCode() == 200;
                } catch (Exception e) {
                    return false;
                } finally {
                    if (c != null) c.disconnect();
                }    
        }
    

    And you can check content-type too, if needed.

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

Sidebar

Related Questions

I would like to develop a website with fully ajax navigation, but this means
Really wish i was God, then I would understand what this means: The element
Does anyone know why this code doesn't work. This means, the alert is NOT
I have my dot files in Github publicly. This means that I have only
I am having issues with my CakePHP application. This seems to be happenining only
The following does not always behave as you would expect: <c:if test=${someBigDecimal == 0}>
Can someone please tell me what this means: 07-04 09:54:38.048: I/DetailActivity(15496): Title that is
I have no idea what this means. But here is the code that it
If I understand it correctly this means extern void foo(); that the function foo
Please have a look at the following machine code ‎0111001101110100011100100110010101110011011100110110010101100100 This means something. I

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.