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