01: package org.objectweb.celtix.systest.type_test.soap;
02:
03: import javax.jws.WebService;
04: import javax.xml.ws.Endpoint;
05:
06: import org.objectweb.celtix.systest.common.TestServerBase;
07: import org.objectweb.celtix.systest.type_test.TypeTestImpl;
08: import org.objectweb.type_test.doc.TypeTestPortType;
09:
10: public class SOAPDocLitServerImpl extends TestServerBase {
11:
12: public void run() {
13:
14: Object implementor = new SOAPTypeTestImpl();
15: String address = "http://localhost:9007/SOAPService/SOAPPort/";
16: Endpoint.publish(address, implementor);
17: }
18:
19: public static void main(String args[]) {
20: try {
21: SOAPDocLitServerImpl s = new SOAPDocLitServerImpl();
22: s.start();
23: } catch (Exception ex) {
24: ex.printStackTrace();
25: System.exit(-1);
26: } finally {
27: System.out.println("done!");
28: }
29: }
30:
31: @WebService(serviceName="SOAPDocLitService",portName="SOAPPort",endpointInterface="org.objectweb.type_test.doc.TypeTestPortType",targetNamespace="http://objectweb.org/type_test/doc")
32: class SOAPTypeTestImpl extends TypeTestImpl implements
33: TypeTestPortType {
34: }
35: }
|