01: package org.objectweb.celtix.systest.securebasic;
02:
03: import javax.xml.ws.Endpoint;
04:
05: import org.objectweb.celtix.systest.common.TestServerBase;
06:
07: public class WantAndNeedClientAuthServerClientPropertiesNotSet extends
08: TestServerBase {
09:
10: private String url;
11:
12: public WantAndNeedClientAuthServerClientPropertiesNotSet(
13: String urlParam) {
14: String configFile = getClass().getResource(".")
15: + "WantAndNeedClientAuthServerClientPropertiesNotSet.xml";
16: System.setProperty("celtix.config.file", configFile);
17: url = urlParam;
18: }
19:
20: protected void run() {
21: Object implementor = new GreeterImpl();
22: String address = url;
23: Endpoint.publish(address, implementor);
24: }
25:
26: public static void main(String[] args) {
27:
28: try {
29: WantAndNeedClientAuthServerClientPropertiesNotSet requireClientAuth = new WantAndNeedClientAuthServerClientPropertiesNotSet(
30: "https://localhost:9015/SoapContext/SoapPort");
31:
32: ServerThread st1 = new ServerThread(requireClientAuth);
33: st1.start();
34:
35: } catch (Exception ex) {
36: ex.printStackTrace();
37: System.exit(-1);
38: } finally {
39: System.out.println("done!");
40: }
41: }
42: }
|