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 java.util.List;
21: import java.util.Vector;
22:
23: import javax.jws.WebMethod;
24: import javax.jws.WebParam;
25: import javax.jws.WebService;
26: import javax.jws.soap.SOAPBinding;
27: import javax.xml.ws.Holder;
28:
29: import org.apache.cxf.systest.jaxws.DocLitWrappedCodeFirstService.Foo;
30:
31: @WebService(name="RpcLitCodeFirstService",targetNamespace="http://cxf.apache.org/systest/jaxws/RpcLitCodeFirstService")
32: @SOAPBinding(style=SOAPBinding.Style.RPC,use=SOAPBinding.Use.LITERAL)
33: public interface RpcLitCodeFirstService {
34: @WebMethod
35: String[] arrayOutput();
36:
37: @WebMethod
38: String arrayInput(@WebParam(name="input")
39: String[] inputs);
40:
41: @WebMethod
42: Vector<String> listOutput();
43:
44: @WebMethod
45: String listInput(List<String> inputs);
46:
47: @WebMethod
48: String multiListInput(List<String> inputs1, List<String> inputs2,
49: String x, int y);
50:
51: @WebMethod
52: String multiInOut(@WebParam(mode=WebParam.Mode.OUT)
53: Holder<String> a, @WebParam(mode=WebParam.Mode.INOUT)
54: Holder<String> b, @WebParam(mode=WebParam.Mode.OUT)
55: Holder<String> c, @WebParam(mode=WebParam.Mode.INOUT)
56: Holder<String> d, @WebParam(mode=WebParam.Mode.INOUT)
57: Holder<String> e, @WebParam(mode=WebParam.Mode.OUT)
58: Holder<String> f, @WebParam(mode=WebParam.Mode.OUT)
59: Holder<String> g);
60:
61: @WebMethod
62: String multiHeaderInOut(
63: @WebParam(mode=WebParam.Mode.OUT,header=true)
64: Holder<String> a, @WebParam(mode=WebParam.Mode.INOUT)
65: Holder<String> b, @WebParam(mode=WebParam.Mode.OUT)
66: Holder<String> c,
67: @WebParam(mode=WebParam.Mode.INOUT,header=true)
68: Holder<String> d, @WebParam(mode=WebParam.Mode.INOUT)
69: Holder<String> e,
70: @WebParam(mode=WebParam.Mode.OUT,header=true)
71: Holder<String> f, @WebParam(mode=WebParam.Mode.OUT)
72: Holder<String> g);
73:
74: @WebMethod
75: List<Foo> listObjectOutput();
76:
77: @WebMethod
78: List<Foo[]> listObjectArrayOutput();
79:
80: static class Foo {
81: String name;
82:
83: public Foo() {
84: }
85:
86: public void setName(String n) {
87: name = n;
88: }
89:
90: public String getName() {
91: return name;
92: }
93: }
94:
95: }
|