| 1 package org.objectweb.celtix.systest.provider; 2 3 import javax.xml.ws.Endpoint; 4 5 import org.objectweb.celtix.systest.common.TestServerBase; 6 7 public class Server extends TestServerBase { 8 9 protected void run() { 10 Object implementor = new HWSoapMessageProvider(); 11 String address = "http://localhost:9002/SOAPServiceRPCLit/SoapPort"; 12 Endpoint.publish(address, implementor); 13 14 implementor = new HWDOMSourceMessageProvider(); 15 address = new String ("http://localhost:9002/SOAPServiceRPCLit/SoapPort1"); 16 Endpoint.publish(address, implementor); 17 18 implementor = new HWDOMSourcePayloadProvider(); 19 address = new String ("http://localhost:9002/SOAPServiceRPCLit/SoapPort2"); 20 Endpoint.publish(address, implementor); 21 22 implementor = new HWSAXSourceMessageProvider(); 23 address = new String ("http://localhost:9002/SOAPServiceRPCLit/SoapPort3"); 24 Endpoint.publish(address, implementor); 25 26 implementor = new HWStreamSourceMessageProvider(); 27 address = new String ("http://localhost:9002/SOAPServiceRPCLit/SoapPort4"); 28 Endpoint.publish(address, implementor); 29 30 implementor = new HWSAXSourcePayloadProvider(); 31 address = new String ("http://localhost:9002/SOAPServiceRPCLit/SoapPort5"); 32 Endpoint.publish(address, implementor); 33 34 implementor = new HWStreamSourcePayloadProvider(); 35 address = new String ("http://localhost:9002/SOAPServiceRPCLit/SoapPort6"); 36 Endpoint.publish(address, implementor); 37 } 38 39 public static void main(String [] args) { 40 try { 41 Server s = new Server(); 42 s.start(); 43 } catch (Exception ex) { 44 ex.printStackTrace(); 45 System.exit(-1); 46 } finally { 47 System.out.println("done!"); 48 } 49 } 50 } 51 | Popular Tags |