KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > systest > securebasic > WantNotNeedClientAuthInterServer


1 package org.objectweb.celtix.systest.securebasic;
2
3 import javax.xml.ws.Endpoint;
4
5 import org.objectweb.celtix.systest.common.TestServerBase;
6
7
8
9 public class WantNotNeedClientAuthInterServer extends TestServerBase {
10     
11     private String JavaDoc url;
12     
13     public WantNotNeedClientAuthInterServer(String JavaDoc urlParam) {
14         String JavaDoc configFile = getClass().getResource(".") + "WantNotNeedClientAuthInterServer.xml";
15         System.setProperty("celtix.config.file", configFile);
16         url = urlParam;
17     }
18     
19     protected void run() {
20         Object JavaDoc implementor = new InterGreeterImpl();
21         String JavaDoc address = url;
22         Endpoint.publish(address, implementor);
23     }
24     
25
26     public static void main(String JavaDoc[] args) {
27         
28         try {
29             WantNotNeedClientAuthInterServer requireClientAuth =
30                 new WantNotNeedClientAuthInterServer("https://localhost:9004/SoapContext/SoapPort");
31             requireClientAuth.start();
32         } catch (Exception JavaDoc ex) {
33             ex.printStackTrace();
34             System.exit(-1);
35         } finally {
36             System.out.println("done!");
37         }
38     }
39 }
40
Popular Tags