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