01: package org.objectweb.celtix.systest.basic;
02:
03: import javax.xml.ws.Endpoint;
04:
05: import org.objectweb.celtix.systest.common.TestServerBase;
06:
07: public class Server extends TestServerBase {
08:
09: protected void run() {
10: Object implementor = new GreeterImpl();
11: String address = "http://localhost:9000/SoapContext/SoapPort";
12: Endpoint.publish(address, implementor);
13: }
14:
15: public static void main(String[] args) {
16: try {
17: Server s = new Server();
18: s.start();
19: //s.run();
20: } catch (Exception ex) {
21: ex.printStackTrace();
22: System.exit(-1);
23: } finally {
24: System.out.println("done!");
25: }
26: }
27: }
|