2 Replies Latest reply on May 6, 2013 9:09 AM by Ajay Sharma

    Unable to test https Web service url.

    Ajay Sharma

      I deployed a Java web service on Glassfish server. While testing the web service I got two URL.
      [server]     http://AJAYPC:8787/TestWS/TWS?Tester
      [server]     https://AJAYPC:8181/TestWS/TWS?Tester
      I am able to test web service using first url but when I clicked on url with "https" I got following error on browser
      Error generating artifacts for the following WSDL https://AJAYPC:8181/TestWS/TWS?WSDL
      Possible causes can be invoking https when the application is not configured for security
      How can I test the https URL ?

      Ajay Sharma
        • 1. Re: Unable to test https Web service url.
          Have you configured the application for https?
          • 2. Re: Unable to test https Web service url.
            Ajay Sharma

            Thanks You.

            I added following code in web service class
            static {
                //WORKAROUND. TO BE REMOVED.
                    HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
                        public boolean verify(String hostname, SSLSession sslSession) {
                                return true;
                            return false;
                            //throw new UnsupportedOperationException("Not supported yet.");
            Now I am getting following response on browser:
            TWS is a secured web service; Tester feature is not supported for secured services
            How can I test the web service ?

            Ajay Sharma