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