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 WantAndNeedClientAuthServerSetBadDataProvider extends
08: TestServerBase {
09:
10: private String url;
11:
12: public WantAndNeedClientAuthServerSetBadDataProvider(String urlParam) {
13: String configFile = getClass().getResource(".")
14: + "WantAndNeedClientAuthServerSetBadDataProvider.xml";
15: System.setProperty("celtix.config.file", configFile);
16: System
17: .setProperty(
18: "celtix.security.configurer.celtix.http-listener.9006",
19: "org.objectweb.celtix.systest.securebasic.SetBadDataSecurityDataProvider");
20: url = urlParam;
21: }
22:
23: protected void run() {
24:
25: Object implementor = new GreeterImpl();
26: String address = url;
27: String configFile = System.getProperty("celtix.config.file");
28: String provider = System
29: .getProperty("celtix.security.configurer.celtix.http-listener.9006");
30: System.out.println("configFile = :" + configFile + ":");
31: System.out.println("provider = :" + provider + ":");
32: Endpoint.publish(address, implementor);
33: }
34:
35: public static void main(String[] args) {
36:
37: try {
38: WantAndNeedClientAuthServerSetBadDataProvider server = new WantAndNeedClientAuthServerSetBadDataProvider(
39: "https://localhost:9006/SoapContext/SoapPort");
40: server.start();
41: } catch (Exception ex) {
42: ex.printStackTrace();
43: System.exit(-1);
44: } finally {
45: System.out.println("done!");
46: }
47: }
48: }
|