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:
020: /**
021: *
022: */package org.apache.axis2.jaxws.sample.wrap;
023:
024: import javax.jws.WebService;
025: import javax.xml.ws.Holder;
026:
027: import org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap;
028: import org.apache.axis2.jaxws.TestLogger;
029: import org.test.sample.wrap.FinancialOperation;
030: import org.test.sample.wrap.Header;
031: import org.test.sample.wrap.HeaderPart0;
032: import org.test.sample.wrap.HeaderPart1;
033: import org.test.sample.wrap.HeaderResponse;
034:
035: @WebService(endpointInterface="org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap")
036: public class DocLitWrapImpl implements DocLitWrap {
037:
038: public FinancialOperation finOp(FinancialOperation op) {
039: // TODO Auto-generated method stub
040: return null;
041: }
042:
043: /**
044: *
045: */
046: public DocLitWrapImpl() {
047: super ();
048: // TODO Auto-generated constructor stub
049: }
050:
051: /* (non-Javadoc)
052: * @see org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap#oneWayVoid()
053: */
054: public void oneWayVoid() {
055: TestLogger.logger.debug("OneWayVoid with no parameters called");
056:
057: }
058:
059: /* (non-Javadoc)
060: * @see org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap#oneWay(java.lang.String)
061: */
062: public void oneWay(String onewayStr) {
063: // TODO Auto-generated method stub
064:
065: }
066:
067: /* (non-Javadoc)
068: * @see org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap#twoWayHolder(javax.xml.ws.Holder, javax.xml.ws.Holder)
069: */
070: public void twoWayHolder(Holder<String> twoWayHolderStr,
071: Holder<Integer> twoWayHolderInt) {
072:
073: twoWayHolderInt.value = 10;
074: twoWayHolderStr.value = "Response String";
075:
076: }
077:
078: /* (non-Javadoc)
079: * @see org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap#twoWay(java.lang.String)
080: */
081: public String twoWay(String twowayStr) {
082: String retStr = new String(
083: "Acknowledgement : Request String received = "
084: + twowayStr);
085: return retStr;
086: }
087:
088: /* (non-Javadoc)
089: * @see org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap#invoke(java.lang.String)
090: */
091: public String invoke(String invokeStr) {
092: // TODO Auto-generated method stub
093: return null;
094: }
095:
096: public HeaderResponse header(Header payload,
097: Holder<HeaderPart0> header0, HeaderPart1 header1) {
098:
099: HeaderPart0 hpo = (HeaderPart0) header0.value;
100: hpo = new HeaderPart0();
101: hpo.setHeaderType("Header Type from Endpoint implementation");
102: header0.value = hpo;
103: //hpo.setHeaderType("");
104: HeaderResponse response = new HeaderResponse();
105: response.setOut(1000);
106: return response;
107: }
108:
109: public String echoStringWSGEN1(String headerValue) {
110: return headerValue;
111: }
112:
113: public String echoStringWSGEN2(String data) {
114: return data;
115: }
116:
117: }
|