001: /*
002: * The contents of this file are subject to the terms of the Common Development
003: * and Distribution License (the License). You may not use this file except in
004: * compliance with the License.
005: *
006: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007: * or http://www.netbeans.org/cddl.txt.
008: *
009: * When distributing Covered Code, include this CDDL Header Notice in each file
010: * and include the License file at http://www.netbeans.org/cddl.txt.
011: * If applicable, add the following below the CDDL Header, with the fields
012: * enclosed by brackets [] replaced by your own identifying information:
013: * "Portions Copyrighted [year] [name of copyright owner]"
014: *
015: * The Original Software is NetBeans. The Initial Developer of the Original
016: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017: * Microsystems, Inc. All Rights Reserved.
018: */
019:
020: package ws;
021:
022: import javax.jws.WebService;
023: import javax.jws.WebMethod;
024: import javax.jws.WebParam;
025: import javax.jws.WebService;
026:
027: /**
028: *
029: * @author Lukas Hasik
030: */
031: @WebService(serviceName="EchoNoArrays_DOCUMENT")
032: public class EchoNoArrays_DOCUMENT {
033:
034: /**
035: * Web service operation
036: */
037: @WebMethod(operationName="getString")
038: public String getString(@WebParam(name="parameter")
039: String parameter) {
040: return parameter;
041: }
042:
043: @WebMethod(operationName="getInt")
044: public int getInt(@WebParam(name="parameter")
045: int parameter) {
046: return parameter;
047: }
048:
049: // @WebMethod(operationName = "getIntegerWrapper")
050: // public Integer getInteger(@WebParam(name = "parameter")
051: // Integer parameter) {
052: // return parameter;
053: // }
054:
055: @WebMethod(operationName="getLong")
056: public long getLong(@WebParam(name="parameter")
057: long parameter) {
058: return parameter;
059: }
060:
061: @WebMethod(operationName="getLongWrapper")
062: public Long getLongWrapper(@WebParam(name="parameter")
063: Long parameter) {
064: return parameter;
065: }
066:
067: @WebMethod(operationName="getShortWrapper")
068: public Short getShortWrapper(@WebParam(name="parameter")
069: Short parameter) {
070: return parameter;
071: }
072:
073: @WebMethod(operationName="getShort")
074: public short getShort(@WebParam(name="parameter")
075: short parameter) {
076: return parameter;
077: }
078:
079: @WebMethod(operationName="getBoolean")
080: public boolean getBoolean(@WebParam(name="parameter")
081: boolean parameter) {
082: return parameter;
083: }
084:
085: @WebMethod(operationName="getBooleanWrapper")
086: public Boolean getBooleanWrapper(@WebParam(name="parameter")
087: Boolean parameter) {
088: return parameter;
089: }
090:
091: @WebMethod(operationName="getFloat")
092: public float getFloat(@WebParam(name="parameter")
093: float parameter) {
094: return parameter;
095: }
096:
097: @WebMethod(operationName="getFloatWrapper")
098: public Float getFloatWrapper(@WebParam(name="parameter")
099: Float parameter) {
100: return parameter;
101: }
102:
103: @WebMethod(operationName="getDouble")
104: public double getDouble(@WebParam(name="parameter")
105: double parameter) {
106: return parameter;
107: }
108:
109: @WebMethod(operationName="getDoubleWrapper")
110: public Double getDoubleWrapper(@WebParam(name="parameter")
111: Double parameter) {
112: return parameter;
113: }
114:
115: @WebMethod(operationName="getQName")
116: public javax.xml.namespace.QName getQName(
117: @WebParam(name="parameter")
118: javax.xml.namespace.QName parameter) {
119: return parameter;
120: }
121:
122: @WebMethod(operationName="getByte")
123: public byte getByte(@WebParam(name="parameter")
124: byte parameter) {
125: return parameter;
126: }
127:
128: @WebMethod(operationName="getByteWrapper")
129: public Byte getByteWrapper(@WebParam(name="parameter")
130: Byte parameter) {
131: return parameter;
132: }
133:
134: }
|