You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Chris Hall <ch...@zingy.com> on 2005/09/23 19:06:19 UTC
WSDL2Java and SSL
Hi all, I'd be very grateful for any help that you can offer me with this
issue.
I'm writing code to interact with a WSDL specified web service that uses SSL
certificates to verify that a given request is legitimate. That is, SSL is
both used to create a secure connection against third parties, but also to
establish trust in that connection between the two parties. I've used
WSDL2Java to create some client java code which makes the SOAP request.
When I run this code, I get a not trusted type error from the server, after
SSL handshaking is correctly executed (I do not get a
javax.net.ssl.SSLHandshakeException). If I take the same SOAP request and
pipe it into an SSLSocket (that is, I take the generated SOAP from the
WSDL2Java generated code and send it to the server with my own socket
management code) I get a successful response from the server. In both cases
the correct certificate is being put into the client's keystore with java
system properties.
So there seems to be something going wrong with how the WSDL2Java generated
code sends the SOAP request, but not with how it creates the SOAP and not
with now it initiates the connection.
Can anyone offer me any insight?
Thanks so much,
--Chris