001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019: package org.apache.axis2.jaxws.sample.wrap.sei;
020:
021: import javax.jws.Oneway;
022: import javax.jws.WebMethod;
023: import javax.jws.WebParam;
024: import javax.jws.WebParam.Mode;
025: import javax.jws.WebResult;
026: import javax.jws.WebService;
027: import javax.jws.soap.SOAPBinding;
028: import javax.jws.soap.SOAPBinding.ParameterStyle;
029: import javax.xml.ws.Holder;
030: import javax.xml.ws.RequestWrapper;
031: import javax.xml.ws.ResponseWrapper;
032:
033: import org.test.sample.wrap.FinancialOperation;
034: import org.test.sample.wrap.Header;
035: import org.test.sample.wrap.HeaderPart0;
036: import org.test.sample.wrap.HeaderPart1;
037: import org.test.sample.wrap.HeaderResponse;
038:
039: /**
040: * This class was generated by the JAXWS SI.
041: * JAX-WS RI 2.0_01-b15-fcs
042: * Generated source version: 2.0
043: *
044: */
045: @WebService(name="DocLitWrap",targetNamespace="http://wrap.sample.test.org")
046: public interface DocLitWrap {
047:
048: /**
049: *
050: */
051: @WebMethod(action="http://wrap.sample.test.org/twoWayReturn")
052: @Oneway
053: @RequestWrapper(localName="oneWayVoid",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.OneWayVoid")
054: public void oneWayVoid();
055:
056: /**
057: *
058: * @param onewayStr
059: */
060: @WebMethod(action="http://wrap.sample.test.org/twoWayReturn")
061: @Oneway
062: @RequestWrapper(localName="oneWay",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.OneWay")
063: public void oneWay(
064: @WebParam(name="oneway_str",targetNamespace="")
065: String onewayStr);
066:
067: /**
068: *
069: * @param twoWayHolderInt
070: * @param twoWayHolderStr
071: */
072: @WebMethod(action="http://wrap.sample.test.org/twoWayReturn")
073: @RequestWrapper(localName="twoWayHolder",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.TwoWayHolder")
074: @ResponseWrapper(localName="twoWayHolder",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.TwoWayHolder")
075: public void twoWayHolder(
076: @WebParam(name="twoWayHolder_str",targetNamespace="",mode=Mode.INOUT)
077: Holder<String> twoWayHolderStr,
078: @WebParam(name="twoWayHolder_int",targetNamespace="",mode=Mode.INOUT)
079: Holder<Integer> twoWayHolderInt);
080:
081: /**
082: *
083: * @param twowayStr
084: * @return
085: * returns java.lang.String
086: */
087: @WebMethod(action="http://wrap.sample.test.org/twoWayReturn")
088: @WebResult(name="return_str",targetNamespace="")
089: @RequestWrapper(localName="twoWay",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.TwoWay")
090: @ResponseWrapper(localName="ReturnType",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.ReturnType")
091: public String twoWay(
092: @WebParam(name="twoway_str",targetNamespace="")
093: String twowayStr);
094:
095: /**
096: *
097: * @param invokeStr
098: * @return
099: * returns java.lang.String
100: */
101: @WebMethod(action="http://wrap.sample.test.org/twoWayReturn")
102: @WebResult(name="return_str",targetNamespace="")
103: @RequestWrapper(localName="invoke",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.Invoke")
104: @ResponseWrapper(localName="ReturnType",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.ReturnType")
105: public String invoke(
106: @WebParam(name="invoke_str",targetNamespace="")
107: String invokeStr);
108:
109: /**
110: *
111: * @param op
112: * @return
113: * returns org.test.sample.wrap.FinancialOperation
114: */
115: @WebMethod(action="http://wrap.sample.test.org/finOp")
116: @WebResult(name="response",targetNamespace="")
117: @RequestWrapper(localName="finOp",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.FinOp")
118: @ResponseWrapper(localName="finOpResponse",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.FinOpResponse")
119: public FinancialOperation finOp(
120: @WebParam(name="op",targetNamespace="")
121: FinancialOperation op);
122:
123: /**
124: *
125: * @param header1
126: * @param header0
127: * @param payload
128: * @return
129: * returns org.test.sample.wrap.HeaderResponse
130: */
131: @WebMethod(action="http://addheaders.sample.test.org/header")
132: @WebResult(name="headerResponse",targetNamespace="http://wrap.sample.test.org",partName="payload")
133: @SOAPBinding(parameterStyle=ParameterStyle.BARE)
134: public HeaderResponse header(
135: @WebParam(name="header",targetNamespace="http://wrap.sample.test.org",partName="payload")
136: Header payload,
137: @WebParam(name="headerPart0",targetNamespace="http://wrap.sample.test.org",header=true,mode=Mode.INOUT,partName="header0")
138: Holder<HeaderPart0> header0,
139: @WebParam(name="headerPart1",targetNamespace="http://wrap.sample.test.org",header=true,partName="header1")
140: HeaderPart1 header1);
141:
142: /**
143: * The SOAPBinding for this method will default to wrapped. Yes Wrapped !
144: * However the parameter is a header parameter...which violates wrapped rules.
145: * Unfortunately WSGEN can produce this kind of situation...thus we need to
146: * handle it
147: * @param headerValue
148: * @return
149: * returns String
150: */
151: @WebMethod(action="http://addheaders.sample.test.org/echoStringWSGEN1")
152: @RequestWrapper(localName="echoStringWSGEN1",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.EchoStringWSGEN1")
153: @ResponseWrapper(localName="echoStringWSGEN1Response",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.EchoStringWSGEN1Response")
154: public String echoStringWSGEN1(
155: @WebParam(name="headerValue",targetNamespace="http://wrap.sample.test.org",header=true)
156: String headerValue);
157:
158: /**
159: * The same as echoStringWSGEN1 except that the return String is in the header
160: * @param data
161: * @return
162: * returns String
163: */
164:
165: @WebMethod(action="http://addheaders.sample.test.org/echoStringWSGEN2")
166: @RequestWrapper(localName="echoStringWSGEN2",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.EchoStringWSGEN2")
167: @ResponseWrapper(localName="echoStringWSGEN2Response",targetNamespace="http://wrap.sample.test.org",className="org.test.sample.wrap.EchoStringWSGEN2Response")
168: @WebResult(name="headerValue",targetNamespace="http://wrap.sample.test.org",header=true)
169: public String echoStringWSGEN2(
170: @WebParam(name="data",targetNamespace="")
171: String data);
172:
173: }
|