1 package demo.soap_header.server; 2 3 import javax.xml.ws.Endpoint; 4 5 public class Server { 6 7 protected Server() throws Exception { 8 System.out.println("Starting Server"); 9 10 Object implementor = new HeaderTesterImpl(); 11 String address = "http://localhost:9000/headers"; 12 Endpoint.publish(address, implementor); 13 } 14 15 public static void main(String args[]) throws Exception { 16 new Server(); 17 System.out.println("Server ready..."); 18 19 Thread.sleep(5 * 60 * 1000); 20 System.out.println("Server exiting"); 21 System.exit(0); 22 } 23 } 24 | Popular Tags |