SKLE 0 Newbie Poster

Hello,

I have to found out why our Web Service Client, which is generated by Wsimport, only works with HTTP-urls. When it try to communicate to a https-url, it returns an error in de logfile:

Failed to access the WSDL at: https://catalogus.debibliotheekhaarlemmermeer.nl/nbdgeleidelijst/services?wsdl=1. It failed with: 
    Connection timed out.

I'm just a beginner for de Web Service and the codes are made by someone who left 2 years ago.
So I don't have any idea's about what is going wrong.
Do we need any authentication? I read in the internet something about cerfiticate, keytool enz.
Is this what we need?
But I don't know how we do this. I don't know how we get de keytool enz..

Our clients can receive our requests, but we can't receive any replies. Because of these our system is keeping to send requests to our clients. Because our system thanks that the coumminication fails.
How can I create a Web Service Client for a SSL-protected server by using WSimport?

Hier are the codes of the Web Service Client:

@WebServiceClient(name = "SoapReplyService", targetNamespace = "http://httpscatalogusdebibliotheekhaarlemmermeernlnbdgeleidelijstservices", wsdlLocation = "https://catalogus.debibliotheekhaarlemmermeer.nl/nbdgeleidelijst/services?wsdl=1")
public class SoapReplyService
    extends Service
{

    private final static URL SOAPREPLYSERVICE_WSDL_LOCATION;
    private final static Logger logger = Logger.getLogger(httpscatalogusdebibliotheekhaarlemmermeernlnbdgeleidelijstservices.SoapReplyService.class.getName());


    static {
        URL url = null;
        try {
            URL baseUrl;
            baseUrl = httpscatalogusdebibliotheekhaarlemmermeernlnbdgeleidelijstservices.SoapReplyService.class.getResource(".");
            url = new URL(baseUrl, "https://catalogus.debibliotheekhaarlemmermeer.nl/nbdgeleidelijst/services?wsdl=1");
        } catch (MalformedURLException e) {
            logger.warning("Failed to create URL for the wsdl Location: 'https://catalogus.debibliotheekhaarlemmermeer.nl/nbdgeleidelijst/services?wsdl=1', retrying as a local file");
            logger.warning(e.getMessage());
        }
        SOAPREPLYSERVICE_WSDL_LOCATION = url;


    }

    public SoapReplyService(URL wsdlLocation, QName serviceName) {

        super(wsdlLocation, serviceName);
    }

    public SoapReplyService() {

          super(SOAPREPLYSERVICE_WSDL_LOCATION, new QName("http://httpscatalogusdebibliotheekhaarlemmermeernlnbdgeleidelijstservices", "SoapReplyService"));

   }

    /**
     * 
     * @return
     *     returns SoapReply
     */
    @WebEndpoint(name = "SoapReplyPort")
    public SoapReply getSoapReplyPort() {

        return super.getPort(new QName("http://httpscatalogusdebibliotheekhaarlemmermeernlnbdgeleidelijstservices", "SoapReplyPort"), SoapReply.class);

    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns SoapReply
     */
    @WebEndpoint(name = "SoapReplyPort")
    public SoapReply getSoapReplyPort(WebServiceFeature... features) {

        return super.getPort(new QName("http://httpscatalogusdebibliotheekhaarlemmermeernlnbdgeleidelijstservices", "SoapReplyPort"), SoapReply.class, features);

   }

}

Thanks,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.