01: package org.objectweb.celtix.systest.basicDOCBare;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05:
06: import javax.xml.namespace.QName;
07: import javax.xml.ws.Endpoint;
08:
09: import org.objectweb.celtix.systest.common.TestServerBase;
10:
11: public class Server extends TestServerBase {
12:
13: protected void run() {
14: Object implementor = new PutLastTradedPriceImpl();
15: String address = "http://localhost:9003/SOAPDocLitBareService/SoapPort";
16: Endpoint ep = Endpoint.create(implementor);
17: Map<String, Object> props = new HashMap<String, Object>(2);
18: props.put(Endpoint.WSDL_SERVICE, new QName(
19: "http://objectweb.org/hello_world_doc_lit_bare",
20: "SOAPService"));
21: props.put(Endpoint.WSDL_PORT, new QName(
22: "http://objectweb.org/hello_world_doc_lit_bare",
23: "SoapPort"));
24: ep.setProperties(props);
25: ep.publish(address);
26: }
27:
28: public static void main(String[] args) {
29: try {
30: Server s = new Server();
31: s.start();
32: } catch (Exception ex) {
33: ex.printStackTrace();
34: System.exit(-1);
35: } finally {
36: System.out.println("done!");
37: }
38: }
39: }
|