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