01: package org.objectweb.celtix.systest.provider;
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 HWSoapMessageProvider();
11: String address = "http://localhost:9002/SOAPServiceRPCLit/SoapPort";
12: Endpoint.publish(address, implementor);
13:
14: implementor = new HWDOMSourceMessageProvider();
15: address = new String(
16: "http://localhost:9002/SOAPServiceRPCLit/SoapPort1");
17: Endpoint.publish(address, implementor);
18:
19: implementor = new HWDOMSourcePayloadProvider();
20: address = new String(
21: "http://localhost:9002/SOAPServiceRPCLit/SoapPort2");
22: Endpoint.publish(address, implementor);
23:
24: implementor = new HWSAXSourceMessageProvider();
25: address = new String(
26: "http://localhost:9002/SOAPServiceRPCLit/SoapPort3");
27: Endpoint.publish(address, implementor);
28:
29: implementor = new HWStreamSourceMessageProvider();
30: address = new String(
31: "http://localhost:9002/SOAPServiceRPCLit/SoapPort4");
32: Endpoint.publish(address, implementor);
33:
34: implementor = new HWSAXSourcePayloadProvider();
35: address = new String(
36: "http://localhost:9002/SOAPServiceRPCLit/SoapPort5");
37: Endpoint.publish(address, implementor);
38:
39: implementor = new HWStreamSourcePayloadProvider();
40: address = new String(
41: "http://localhost:9002/SOAPServiceRPCLit/SoapPort6");
42: Endpoint.publish(address, implementor);
43: }
44:
45: public static void main(String[] args) {
46: try {
47: Server s = new Server();
48: s.start();
49: } catch (Exception ex) {
50: ex.printStackTrace();
51: System.exit(-1);
52: } finally {
53: System.out.println("done!");
54: }
55: }
56: }
|