-----Message d'origine-----So i have to modify the class Call also ???
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Chistian Lacetera
Envoyé : vendredi 11 janvier 2002 15:44
À : [EMAIL PROTECTED]
Objet : Re: apache SOAP SSL
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 thisresp = 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 : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Chistian
Lacetera
Envoye : vendredi 11 janvier 2002 14:42
A : [EMAIL PROTECTED]
Objet : apache SOAP SSLHi 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 ??
yes ,
after you recompile soap.jar with ant
- apache SOAP SSL Chistian Lacetera
- RE: apache SOAP SSL Ahmed Dinar
- Re: apache SOAP SSL Chistian Lacetera
- Ahmed Dinar