ok, sorry - I've neved used spring with axis2! The stub comes from running Axis2 over the WSDL to get java classes.
Alistair -- mov eax,1 mov ebx,0 int 80h > Well, I've done the cert part, but what is MyServiceStub for? > I'm using spring with axis for the client. > And btw right now I have these lines in my wsdl : > > <wsdl:service name="HelloImpl"> > <wsdl:port name="HelloImplSOAP11port_http" > binding="axis2:HelloImplSOAP11Binding"> > <soap:address > location="http://192.168.32.19:8443/axis2/services/HelloImpl"/ >> > </wsdl:port> > <wsdl:port name="HelloImplSOAP11port_http1" > binding="axis2:HelloImplSOAP11Binding"> > <soap:address > location="http://192.168.32.19:8080/axis2/services/HelloImpl"/ >> > </wsdl:port> > <wsdl:port name="HelloImplSOAP12port_http" > binding="axis2:HelloImplSOAP12Binding"> > <soap12:address location=" > http://192.168.32.19:8443/axis2/services/HelloImpl"/> > </wsdl:port> > <wsdl:port name="HelloImplSOAP12port_http1" > binding="axis2:HelloImplSOAP12Binding"> > <soap12:address location=" > http://192.168.32.19:8080/axis2/services/HelloImpl"/> > </wsdl:port> > <wsdl:port name="HelloImplHttpport" binding="axis2:HelloImplHttpBinding"> > <http:address > location="http://192.168.32.19:8443/axis2/services/HelloImpl"/ >> > </wsdl:port> > <wsdl:port name="HelloImplHttpport1" > binding="axis2:HelloImplHttpBinding"> > <http:address > location="http://192.168.32.19:8080/axis2/services/HelloImpl"/ >> > </wsdl:port> > </wsdl:service> > > I can access the service, but only through 8080. > > Here's my Spring bean : > <bean id="hellows" > class=" > org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean"> > <property name="wsdlDocumentUrl"> > <!-- <value> > http://vereo-cacbb4bd6:8988/webservice-Project1-context-root/HelloImplSoapHttpPort?WSDL</value> > --> > <!-- <value>http://localhost:8080/roz/services/HelloImpl?wsdl</value> > --> > <value>https://localhost/axis2/services/HelloImpl?wsdl</value> > </property> > <property name="serviceInterface"> > <value>bg.geek.bivanov.webservice.Hellows</value> > </property> > <property name="namespaceUri"> > <value>http://webservice.bivanov.geek.bg</value> > </property> > <property name="serviceName"> > <!-- <value>HelloImplService</value> --> > <value>HelloImpl</value> > </property> > <property name="portName"> > <value>HelloImplSOAP12port_http</value> > </property> > <property name="serviceFactoryClass"> > <value>org.apache.axis.client.ServiceFactory</value> > </property> > </bean> > > > On 9/5/07, Alistair Young <[EMAIL PROTECTED]> wrote: >> >> 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] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
