01: package org.objectweb.celtix.systest.xml_wrapped;
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/XMLService/XMLPort";
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: } catch (Exception ex) {
20: ex.printStackTrace();
21: System.exit(-1);
22: } finally {
23: System.out.println("done!");
24: }
25: }
26: }
|