export your tomcat's cert into a truststore and specify it in your client: keytool -export -alias tomcat -keystore keystore.jks -file server.cer keytool -import -alias myservice -keystore truststore -file
in the client code add: System.setProperty(javax.net.ssl.trustStore, /path/to/truststore); System.setProperty(javax.net.ssl.trustStorePassword, pasword); and change to https in the stub: MyServiceStub stub = new MyServiceStub(https://localhost:8443/axis2/services/HelloImpl); that'll work for a service over https Alistair -- mov eax,1 mov ebx,0 int 80h > Hi, > I'm quite new into web services, so excuse my dumb question. I tried > searching > the list archive, but couldn't find an answer. > My question is what do I need to to in order to deploy a webservice, which > is > to be used over HTTPS. > I configured tomcat and can access the service at > https://localhost/axis2/services/HelloImpl?wsdl, but in the wsdl > descriptor I > see that the port is mapped to 8080, which is plain old http. > I added https sender and receiver, but still can't make it work. > And it made things worse - I see port like http://localhost:443... which I > think is not correct. > I copied the wsdl and pasted it into the service archive, changing http to > https, but the problem still persists. > Could you please tell me what I'm missing? > > Thanks in advance ! > > > Boyan Ivanov > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]