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 WantNotNeedClientAuthServer extends TestServerBase {
08:
09: private String url;
10:
11: public WantNotNeedClientAuthServer(String urlParam) {
12: String configFile = getClass().getResource(".")
13: + "WantNotNeedClientAuthServer.xml";
14: System.setProperty("celtix.config.file", configFile);
15: url = urlParam;
16: }
17:
18: protected void run() {
19: Object implementor = new GreeterImpl();
20: String address = url;
21: Endpoint.publish(address, implementor);
22: }
23:
24: public static void main(String[] args) {
25:
26: try {
27: WantNotNeedClientAuthServer dontRequireClientAuth = new WantNotNeedClientAuthServer(
28: "https://localhost:9002/SoapContext/SoapPort");
29: dontRequireClientAuth.start();
30: } catch (Exception ex) {
31: ex.printStackTrace();
32: System.exit(-1);
33: } finally {
34: System.out.println("done!");
35: }
36: }
37: }
|