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: @WebService(name="DocLitWrappedCodeFirstService",targetNamespace="http://cxf.apache.org/systest/jaxws/DocLitWrappedCodeFirstService")
30: @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,use=SOAPBinding.Use.LITERAL)
31: public interface DocLitWrappedCodeFirstService {
32:
33: @WebMethod
34: String[] arrayOutput();
35:
36: @WebMethod
37: String arrayInput(@WebParam(name="input")
38: String[] inputs);
39:
40: @WebMethod
41: Vector<String> listOutput();
42:
43: @WebMethod
44: String listInput(List<String> inputs);
45:
46: @WebMethod
47: String multiListInput(List<String> inputs1, List<String> inputs2,
48: String x, int y);
49:
50: @WebMethod
51: String multiInOut(@WebParam(mode=WebParam.Mode.OUT)
52: Holder<String> a, @WebParam(mode=WebParam.Mode.INOUT)
53: Holder<String> b, @WebParam(mode=WebParam.Mode.OUT)
54: Holder<String> c, @WebParam(mode=WebParam.Mode.INOUT)
55: Holder<String> d, @WebParam(mode=WebParam.Mode.INOUT)
56: Holder<String> e, @WebParam(mode=WebParam.Mode.OUT)
57: Holder<String> f, @WebParam(mode=WebParam.Mode.OUT)
58: Holder<String> g);
59:
60: @WebMethod
61: List<Foo> listObjectOutput();
62:
63: @WebMethod
64: List<Foo[]> listObjectArrayOutput();
65:
66: static class Foo {
67: String name;
68:
69: public Foo() {
70: }
71:
72: public void setName(String n) {
73: name = n;
74: }
75:
76: public String getName() {
77: return name;
78: }
79: }
80: }
|