01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.cxf.systest.jaxws;
19:
20: import javax.xml.ws.Endpoint;
21:
22: import org.apache.cxf.anonymous_complex_type.AnonymousComplexTypeImpl;
23: import org.apache.cxf.jaxb_element_test.JaxbElementTestImpl;
24: import org.apache.cxf.ordered_param_holder.OrderedParamHolderImpl;
25: import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
26:
27: public class ServerMisc extends AbstractBusTestServerBase {
28: public static final String DOCLIT_CODEFIRST_URL = "http://localhost:9003/DocLitWrappedCodeFirstService/";
29: public static final String RPCLIT_CODEFIRST_URL = "http://localhost:9003/RpcLitCodeFirstService/";
30:
31: protected void run() {
32: Object implementor1 = new AnonymousComplexTypeImpl();
33: String address = "http://localhost:9000/anonymous_complex_typeSOAP";
34: Endpoint.publish(address, implementor1);
35:
36: Object implementor2 = new JaxbElementTestImpl();
37: address = "http://localhost:9001/jaxb_element_test";
38: Endpoint.publish(address, implementor2);
39:
40: Object implementor3 = new OrderedParamHolderImpl();
41: address = "http://localhost:9002/ordered_param_holder/";
42: Endpoint.publish(address, implementor3);
43:
44: Object implementor4 = new DocLitWrappedCodeFirstServiceImpl();
45: Endpoint.publish(DOCLIT_CODEFIRST_URL, implementor4);
46:
47: Object implementor5 = new RpcLitCodeFirstServiceImpl();
48: Endpoint.publish(RPCLIT_CODEFIRST_URL, implementor5);
49:
50: Endpoint.publish(
51: "http://localhost:9000/InheritContext/InheritPort",
52: new InheritImpl());
53: }
54:
55: public static void main(String[] args) {
56: try {
57: ServerMisc s = new ServerMisc();
58: s.start();
59: } catch (Exception ex) {
60: ex.printStackTrace();
61: System.exit(-1);
62: } finally {
63: System.out.println("done!");
64: }
65: }
66: }
|