Try this one Håkon:
Prøv denne Håkon:

System.setProperty("axis.socketSecureFactory", 
"org.apache.axis.components.net.SunFakeTrustSocketFactory");

Add this line before the code that instantiates the service object. 

WARNING: this code should not be used in a production environment, as it will 
allow your client to connect to any SSL server, trusted or not.  


Anyway, I guess Creditinform (that's the service you are trying to create a 
client against isn't it?) has a valid certificate you are supposed to use. Get 
the certificate, install it in your Java keystore and run. Then you shouldn't 
need the above code...

Either the certificate at the webservices end is non-valid, or you haven't 
installed the certificate in your keystore.

Geir


-----Original Message-----
From: Håkon T Sønderland [mailto:[EMAIL PROTECTED] 
Sent: 12. desember 2005 11:11
To: [email protected]
Subject: Re: Web service client: need help

Håkon T Sønderland wrote:
> Thanks a lot, I need to take a look at the next exception in the log 
> then, because it certainly isn't working ;) I was assuming this was 
> the problem since it is the first exception that is cast.  I thought 
> the rest was just follow-ons from this one and thus ignored them.
> 

OK, next try. I'm seeing this exception further down in the log file:

12.09 13:52:17 DEBUG org.apache.axis.utils.NSStack - NSPop (empty) AxisFault
  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
  faultSubcode:
  faultString: javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: No trusted certificate found
  faultActor:
  faultNode:
  faultDetail:
        
{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: No trusted certificate found
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
        at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
        at 
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
        at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)

and:

javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: No trusted certificate found
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)

This sort of sounds to me that the certificate at the web-service end is 
broken, but since this is a web-service used by many customers that does not 
sound plausible.

Any ideas on what can be wrong on my end for this to happen?

Thanks,
Håkon




--
We shall fight on the beaches,
we shall fight on the landing grounds,
we shall fight in the fields and in the streets, we shall fight in the hills; 
we shall never surrender http://www.getfirefox.com/

Reply via email to