ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmed Dinar <>
Subject RE: apache SOAP SSL
Date Fri, 11 Jan 2002 14:12:16 GMT

try this
i had the same problem i changed the class SSLUtils  in the package package;
i passed the SSLSocketFactory to the class call on the method invoke like

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 =
			 System.out.println("factory null");
			 myfactory = factory;
			 System.out.println("factory not null= "+
		SSLSocket sslSocket = 
		(SSLSocket)myfactory.createSocket(host, port);
		if (sslSocket == null)
			System.out.println("probleme dans la creation de la

	     * 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().
	    return  sslSocket;  

-----Message d'origine-----
De : []De la part de Chistian
Envoye : vendredi 11 janvier 2002 14:42
A :
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 ??

View raw message