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