KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > systest > handlers > Server


1 package org.objectweb.celtix.systest.handlers;
2
3
4 // import java.util.ArrayList;
5
// import java.util.List;
6
import javax.xml.ws.Endpoint;
7 // import javax.xml.ws.handler.Handler;
8

9 import org.objectweb.celtix.systest.common.TestServerBase;
10
11 public class Server extends TestServerBase {
12     
13     protected void run() {
14         Object JavaDoc implementor = new HandlerTestImpl();
15         String JavaDoc address = "http://localhost:9005/HandlerTest/SoapPort";
16         Endpoint.publish(address, implementor);
17     }
18     
19
20
21     public static void main(String JavaDoc[] args) {
22         try {
23             Server s = new Server();
24             s.start();
25         } catch (Exception JavaDoc ex) {
26             ex.printStackTrace();
27             System.exit(-1);
28         } finally {
29             System.out.println("done!");
30         }
31     }
32 }
33
Popular Tags