So i have to modify the class Call also ???
 

Thanx for the info !
 

Ahmed Dinar wrote:

 

try this
i had the same problem i changed the class SSLUtils  in the package package org.apache.soap.util.net;
i passed the SSLSocketFactory to the class call on the method invoke like this

resp = call.invoke(url, "", sf);

        public class SSLUtils {

        /** This method builds an SSL socket, after auto-starting SSL */
        public static Socket buildSSLSocket(String host, int port, SSLSocketFactory factory)
                throws IOException, UnknownHostException
        {
            SSLSocketFactory myfactory = null;
 

                if (factory == null)
                {
                         myfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
                         System.out.println("factory null");
 
                }else
                {
                         myfactory = factory;
                         System.out.println("factory not null= "+ myfactory.toString());
                }

                SSLSocket sslSocket =
                (SSLSocket)myfactory.createSocket(host, port);

                if (sslSocket == null)
                {
                        System.out.println("probleme dans la creation de la socket");
 
                }
                else
                {
                        System.out.println("sslSocket="+ sslSocket.toString());
                }
 

                /*
             * Handshaking is started manually in this example because
             * PrintWriter catches all IOExceptions (including
             * SSLExceptions), sets an internal error flag, and then
             * returns without rethrowing the exception.
             *
             * Unfortunately, this means any error messages are lost,
             * which caused lots of confusion for others using this
             * code.  The only way to tell there was an error is to call
             * PrintWriter.checkError().
             */
                 sslSocket.startHandshake();
 
            return  sslSocket;
 
         }
}
 

-----Message d'origine-----
De : cristian@bci.it [mailto:cristian@bci.it]De la part de Chistian
Lacetera
Envoye : vendredi 11 janvier 2002 14:42
A : soap-dev@xml.apache.org
Objet : apache SOAP SSL

Hi to all

i tryed some examples to bring SOAP over HTTPS....

i had used Apache+ Mod_SSL + tomcat + apacheSOAP

for the server side there are no problem

bur a custo client (in java don't work) someone can help me ??