Hello Everybody,
I am trying to use https with Apache SOAP and Tomcat for invoking a
web-service. My project requires me to write my custom protocol handlers. I
mean my project uses URL class to load my custom protocol handler for http
and https. There I've to set the system property
"java.protocol.handler.pkgs" to my custom protocol handler. These custom
protocol handlers in turn call Apache API to invoke the web service. Here is
what I've to do:

In the initialization code of my project:
System.setProperty("java.protocol.handler.pkgs",
"mycustomprotocolhandlerpackage");

And in my protocol handler I use following code to invoke the web-service.

        Envelope msgEnv;
        // Create the envelope
        Message msg = new Message();
        msg.send(soapURL, "", msgEnv);
        SOAPTransport st = msg.getSOAPTransport();
        BufferedReader br = st.receive();


I get a SOAP fault message saying: unknown protocol: https. I want to know
if there is any way I can get https with APache SOAP to work. Note that I am
not in a position to call System.setProperty("java.protocol.handler.pkgs",
"mycustomprotocolhandlerpackage"); in my source code.

Any help will be greatly appreciated.

Thanks.
-Ashutosh.

Reply via email to