KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > systest > type_test > soap > SOAPRpcLitServerImpl


1 package org.objectweb.celtix.systest.type_test.soap;
2
3 import javax.jws.WebService;
4 import javax.xml.ws.Endpoint;
5
6 import org.objectweb.celtix.systest.common.TestServerBase;
7 import org.objectweb.celtix.systest.type_test.TypeTestImpl;
8 import org.objectweb.type_test.rpc.TypeTestPortType;
9
10 public class SOAPRpcLitServerImpl extends TestServerBase {
11
12     public void run() {
13
14         Object JavaDoc implementor = new SOAPTypeTestImpl();
15         String JavaDoc address = "http://localhost:9006/SOAPService/SOAPPort/";
16         Endpoint.publish(address, implementor);
17     }
18
19     public static void main(String JavaDoc args[]) {
20         try {
21             SOAPRpcLitServerImpl s = new SOAPRpcLitServerImpl();
22             s.start();
23         } catch (Exception JavaDoc ex) {
24             ex.printStackTrace();
25             System.exit(-1);
26         } finally {
27             System.out.println("done!");
28         }
29     }
30     
31     @WebService(serviceName = "SOAPRpcLitService",
32                 portName = "SOAPPort",
33                 endpointInterface = "org.objectweb.type_test.rpc.TypeTestPortType",
34                 targetNamespace = "http://objectweb.org/type_test/rpc")
35     class SOAPTypeTestImpl extends TypeTestImpl implements TypeTestPortType {
36     }
37 }
38
Popular Tags