Return-Path: X-Original-To: apmail-incubator-airavata-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-airavata-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E6FA46DA for ; Mon, 11 Jul 2011 21:12:17 +0000 (UTC) Received: (qmail 40766 invoked by uid 500); 11 Jul 2011 21:12:17 -0000 Delivered-To: apmail-incubator-airavata-commits-archive@incubator.apache.org Received: (qmail 40652 invoked by uid 500); 11 Jul 2011 21:12:16 -0000 Mailing-List: contact airavata-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: airavata-dev@incubator.apache.org Delivered-To: mailing list airavata-commits@incubator.apache.org Received: (qmail 40608 invoked by uid 99); 11 Jul 2011 21:12:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 21:12:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 21:11:58 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9D21E2388C06; Mon, 11 Jul 2011 21:11:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1145356 [15/28] - in /incubator/airavata/trunk/ws-messaging: ./ distribution/ distribution/axis2_releases/ distribution/axis2_releases/axis2-1.6.0/ distribution/axis2_releases/axis2-1.6.0/bin/ distribution/axis2_releases/axis2-1.6.0/conf/ ... Date: Mon, 11 Jul 2011 21:10:56 -0000 To: airavata-commits@incubator.apache.org From: smarru@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110711211105.9D21E2388C06@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/src/org/tempuri/IBaseDataTypesDocLitB.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/src/org/tempuri/IBaseDataTypesDocLitB.java?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/src/org/tempuri/IBaseDataTypesDocLitB.java (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/src/org/tempuri/IBaseDataTypesDocLitB.java Mon Jul 11 21:10:36 2011 @@ -0,0 +1,316 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + + +package org.tempuri; + +import java.math.BigDecimal; +import java.math.BigInteger; +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.datatype.Duration; +import javax.xml.datatype.XMLGregorianCalendar; +import javax.xml.namespace.QName; +import org.datacontract.schemas._2004._07.system.DateTimeOffset; + +@WebService(name = "IBaseDataTypesDocLitB", targetNamespace = "http://tempuri.org/") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +public interface IBaseDataTypesDocLitB { + + + /** + * + * @param inBool + * @return + * returns boolean + */ + @WebMethod(operationName = "RetBool", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetBool") + @WebResult(name = "RetBoolResult", targetNamespace = "http://tempuri.org/", partName = "RetBoolResult") + public boolean retBool( + @WebParam(name = "inBool", targetNamespace = "http://tempuri.org/", partName = "inBool") + boolean inBool); + + /** + * + * @param inByte + * @return + * returns short + */ + @WebMethod(operationName = "RetByte", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetByte") + @WebResult(name = "RetByteResult", targetNamespace = "http://tempuri.org/", partName = "RetByteResult") + public short retByte( + @WebParam(name = "inByte", targetNamespace = "http://tempuri.org/", partName = "inByte") + short inByte); + + /** + * + * @param inSByte + * @return + * returns byte + */ + @WebMethod(operationName = "RetSByte", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetSByte") + @WebResult(name = "RetSByteResult", targetNamespace = "http://tempuri.org/", partName = "RetSByteResult") + public byte retSByte( + @WebParam(name = "inSByte", targetNamespace = "http://tempuri.org/", partName = "inSByte") + byte inSByte); + + /** + * + * @param inByteArray + * @return + * returns byte[] + */ + @WebMethod(operationName = "RetByteArray", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetByteArray") + @WebResult(name = "RetByteArrayResult", targetNamespace = "http://tempuri.org/", partName = "RetByteArrayResult") + public byte[] retByteArray( + @WebParam(name = "inByteArray", targetNamespace = "http://tempuri.org/", partName = "inByteArray") + byte[] inByteArray); + + /** + * + * @param inChar + * @return + * returns int + */ + @WebMethod(operationName = "RetChar", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetChar") + @WebResult(name = "RetCharResult", targetNamespace = "http://tempuri.org/", partName = "RetCharResult") + public int retChar( + @WebParam(name = "inChar", targetNamespace = "http://tempuri.org/", partName = "inChar") + int inChar); + + /** + * + * @param inDecimal + * @return + * returns java.math.BigDecimal + */ + @WebMethod(operationName = "RetDecimal", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetDecimal") + @WebResult(name = "RetDecimalResult", targetNamespace = "http://tempuri.org/", partName = "RetDecimalResult") + public BigDecimal retDecimal( + @WebParam(name = "inDecimal", targetNamespace = "http://tempuri.org/", partName = "inDecimal") + BigDecimal inDecimal); + + /** + * + * @param inFloat + * @return + * returns float + */ + @WebMethod(operationName = "RetFloat", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetFloat") + @WebResult(name = "RetFloatResult", targetNamespace = "http://tempuri.org/", partName = "RetFloatResult") + public float retFloat( + @WebParam(name = "inFloat", targetNamespace = "http://tempuri.org/", partName = "inFloat") + float inFloat); + + /** + * + * @param inDouble + * @return + * returns double + */ + @WebMethod(operationName = "RetDouble", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetDouble") + @WebResult(name = "RetDoubleResult", targetNamespace = "http://tempuri.org/", partName = "RetDoubleResult") + public double retDouble( + @WebParam(name = "inDouble", targetNamespace = "http://tempuri.org/", partName = "inDouble") + double inDouble); + + /** + * + * @param inSingle + * @return + * returns float + */ + @WebMethod(operationName = "RetSingle", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetSingle") + @WebResult(name = "RetSingleResult", targetNamespace = "http://tempuri.org/", partName = "RetSingleResult") + public float retSingle( + @WebParam(name = "inSingle", targetNamespace = "http://tempuri.org/", partName = "inSingle") + float inSingle); + + /** + * + * @param inInt + * @return + * returns int + */ + @WebMethod(operationName = "RetInt", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetInt") + @WebResult(name = "RetIntResult", targetNamespace = "http://tempuri.org/", partName = "RetIntResult") + public int retInt( + @WebParam(name = "inInt", targetNamespace = "http://tempuri.org/", partName = "inInt") + int inInt); + + /** + * + * @param inShort + * @return + * returns short + */ + @WebMethod(operationName = "RetShort", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetShort") + @WebResult(name = "RetShortResult", targetNamespace = "http://tempuri.org/", partName = "RetShortResult") + public short retShort( + @WebParam(name = "inShort", targetNamespace = "http://tempuri.org/", partName = "inShort") + short inShort); + + /** + * + * @param inLong + * @return + * returns long + */ + @WebMethod(operationName = "RetLong", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetLong") + @WebResult(name = "RetLongResult", targetNamespace = "http://tempuri.org/", partName = "RetLongResult") + public long retLong( + @WebParam(name = "inLong", targetNamespace = "http://tempuri.org/", partName = "inLong") + long inLong); + + /** + * + * @param inObject + * @return + * returns java.lang.Object + */ + @WebMethod(operationName = "RetObject", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetObject") + @WebResult(name = "RetObjectResult", targetNamespace = "http://tempuri.org/", partName = "RetObjectResult") + public Object retObject( + @WebParam(name = "inObject", targetNamespace = "http://tempuri.org/", partName = "inObject") + Object inObject); + + /** + * + * @param inUInt + * @return + * returns long + */ + @WebMethod(operationName = "RetUInt", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetUInt") + @WebResult(name = "RetUIntResult", targetNamespace = "http://tempuri.org/", partName = "RetUIntResult") + public long retUInt( + @WebParam(name = "inUInt", targetNamespace = "http://tempuri.org/", partName = "inUInt") + long inUInt); + + /** + * + * @param inUShort + * @return + * returns int + */ + @WebMethod(operationName = "RetUShort", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetUShort") + @WebResult(name = "RetUShortResult", targetNamespace = "http://tempuri.org/", partName = "RetUShortResult") + public int retUShort( + @WebParam(name = "inUShort", targetNamespace = "http://tempuri.org/", partName = "inUShort") + int inUShort); + + /** + * + * @param inULong + * @return + * returns java.math.BigInteger + */ + @WebMethod(operationName = "RetULong", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetULong") + @WebResult(name = "RetULongResult", targetNamespace = "http://tempuri.org/", partName = "RetULongResult") + public BigInteger retULong( + @WebParam(name = "inULong", targetNamespace = "http://tempuri.org/", partName = "inULong") + BigInteger inULong); + + /** + * + * @param inString + * @return + * returns java.lang.String + */ + @WebMethod(operationName = "RetString", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetString") + @WebResult(name = "RetStringResult", targetNamespace = "http://tempuri.org/", partName = "RetStringResult") + public String retString( + @WebParam(name = "inString", targetNamespace = "http://tempuri.org/", partName = "inString") + String inString); + + /** + * + * @param inGuid + * @return + * returns java.lang.String + */ + @WebMethod(operationName = "RetGuid", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetGuid") + @WebResult(name = "RetGuidResult", targetNamespace = "http://tempuri.org/", partName = "RetGuidResult") + public String retGuid( + @WebParam(name = "inGuid", targetNamespace = "http://tempuri.org/", partName = "inGuid") + String inGuid); + + /** + * + * @param inUri + * @return + * returns java.lang.String + */ + @WebMethod(operationName = "RetUri", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetUri") + @WebResult(name = "RetUriResult", targetNamespace = "http://tempuri.org/", partName = "RetUriResult") + public String retUri( + @WebParam(name = "inUri", targetNamespace = "http://tempuri.org/", partName = "inUri") + String inUri); + + /** + * + * @param inDateTime + * @return + * returns javax.xml.datatype.XMLGregorianCalendar + */ + @WebMethod(operationName = "RetDateTime", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetDateTime") + @WebResult(name = "RetDateTimeResult", targetNamespace = "http://tempuri.org/", partName = "RetDateTimeResult") + public XMLGregorianCalendar retDateTime( + @WebParam(name = "inDateTime", targetNamespace = "http://tempuri.org/", partName = "inDateTime") + XMLGregorianCalendar inDateTime); + + /** + * + * @param inDateTimeOffset + * @return + * returns org.datacontract.schemas._2004._07.system.DateTimeOffset + */ + @WebMethod(operationName = "RetDateTimeOffset", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetDateTimeOffset") + @WebResult(name = "RetDateTimeOffsetResult", targetNamespace = "http://tempuri.org/", partName = "RetDateTimeOffsetResult") + public DateTimeOffset retDateTimeOffset( + @WebParam(name = "inDateTimeOffset", targetNamespace = "http://tempuri.org/", partName = "inDateTimeOffset") + DateTimeOffset inDateTimeOffset); + + /** + * + * @param inTimeSpan + * @return + * returns javax.xml.datatype.Duration + */ + @WebMethod(operationName = "RetTimeSpan", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetTimeSpan") + @WebResult(name = "RetTimeSpanResult", targetNamespace = "http://tempuri.org/", partName = "RetTimeSpanResult") + public Duration retTimeSpan( + @WebParam(name = "inTimeSpan", targetNamespace = "http://tempuri.org/", partName = "inTimeSpan") + Duration inTimeSpan); + + /** + * + * @param inQName + * @return + * returns javax.xml.namespace.QName + */ + @WebMethod(operationName = "RetQName", action = "http://tempuri.org/IBaseDataTypesDocLitB/RetQName") + @WebResult(name = "RetQNameResult", targetNamespace = "http://tempuri.org/", partName = "RetQNameResult") + public QName retQName( + @WebParam(name = "inQName", targetNamespace = "http://tempuri.org/", partName = "inQName") + QName inQName); + +} Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/src/org/tempuri/ObjectFactory.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/src/org/tempuri/ObjectFactory.java?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/src/org/tempuri/ObjectFactory.java (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/src/org/tempuri/ObjectFactory.java Mon Jul 11 21:10:36 2011 @@ -0,0 +1,519 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + + +package org.tempuri; + +import java.math.BigDecimal; +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.datatype.Duration; +import javax.xml.datatype.XMLGregorianCalendar; +import javax.xml.namespace.QName; +import org.datacontract.schemas._2004._07.system.DateTimeOffset; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.tempuri package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _InChar_QNAME = new QName("http://tempuri.org/", "inChar"); + private final static QName _RetQNameResult_QNAME = new QName("http://tempuri.org/", "RetQNameResult"); + private final static QName _InDouble_QNAME = new QName("http://tempuri.org/", "inDouble"); + private final static QName _RetSingleResult_QNAME = new QName("http://tempuri.org/", "RetSingleResult"); + private final static QName _RetDoubleResult_QNAME = new QName("http://tempuri.org/", "RetDoubleResult"); + private final static QName _InULong_QNAME = new QName("http://tempuri.org/", "inULong"); + private final static QName _RetByteArrayResult_QNAME = new QName("http://tempuri.org/", "RetByteArrayResult"); + private final static QName _RetDateTimeOffsetResult_QNAME = new QName("http://tempuri.org/", "RetDateTimeOffsetResult"); + private final static QName _RetUriResult_QNAME = new QName("http://tempuri.org/", "RetUriResult"); + private final static QName _RetBoolResult_QNAME = new QName("http://tempuri.org/", "RetBoolResult"); + private final static QName _InUShort_QNAME = new QName("http://tempuri.org/", "inUShort"); + private final static QName _InDateTime_QNAME = new QName("http://tempuri.org/", "inDateTime"); + private final static QName _InObject_QNAME = new QName("http://tempuri.org/", "inObject"); + private final static QName _InSByte_QNAME = new QName("http://tempuri.org/", "inSByte"); + private final static QName _InQName_QNAME = new QName("http://tempuri.org/", "inQName"); + private final static QName _InUInt_QNAME = new QName("http://tempuri.org/", "inUInt"); + private final static QName _InBool_QNAME = new QName("http://tempuri.org/", "inBool"); + private final static QName _InShort_QNAME = new QName("http://tempuri.org/", "inShort"); + private final static QName _RetIntResult_QNAME = new QName("http://tempuri.org/", "RetIntResult"); + private final static QName _RetByteResult_QNAME = new QName("http://tempuri.org/", "RetByteResult"); + private final static QName _RetUIntResult_QNAME = new QName("http://tempuri.org/", "RetUIntResult"); + private final static QName _InString_QNAME = new QName("http://tempuri.org/", "inString"); + private final static QName _RetDateTimeResult_QNAME = new QName("http://tempuri.org/", "RetDateTimeResult"); + private final static QName _InGuid_QNAME = new QName("http://tempuri.org/", "inGuid"); + private final static QName _RetULongResult_QNAME = new QName("http://tempuri.org/", "RetULongResult"); + private final static QName _InInt_QNAME = new QName("http://tempuri.org/", "inInt"); + private final static QName _InByteArray_QNAME = new QName("http://tempuri.org/", "inByteArray"); + private final static QName _InFloat_QNAME = new QName("http://tempuri.org/", "inFloat"); + private final static QName _RetTimeSpanResult_QNAME = new QName("http://tempuri.org/", "RetTimeSpanResult"); + private final static QName _RetGuidResult_QNAME = new QName("http://tempuri.org/", "RetGuidResult"); + private final static QName _InLong_QNAME = new QName("http://tempuri.org/", "inLong"); + private final static QName _InUri_QNAME = new QName("http://tempuri.org/", "inUri"); + private final static QName _RetStringResult_QNAME = new QName("http://tempuri.org/", "RetStringResult"); + private final static QName _RetDecimalResult_QNAME = new QName("http://tempuri.org/", "RetDecimalResult"); + private final static QName _InTimeSpan_QNAME = new QName("http://tempuri.org/", "inTimeSpan"); + private final static QName _RetLongResult_QNAME = new QName("http://tempuri.org/", "RetLongResult"); + private final static QName _RetShortResult_QNAME = new QName("http://tempuri.org/", "RetShortResult"); + private final static QName _InByte_QNAME = new QName("http://tempuri.org/", "inByte"); + private final static QName _InDateTimeOffset_QNAME = new QName("http://tempuri.org/", "inDateTimeOffset"); + private final static QName _RetFloatResult_QNAME = new QName("http://tempuri.org/", "RetFloatResult"); + private final static QName _RetCharResult_QNAME = new QName("http://tempuri.org/", "RetCharResult"); + private final static QName _InSingle_QNAME = new QName("http://tempuri.org/", "inSingle"); + private final static QName _RetSByteResult_QNAME = new QName("http://tempuri.org/", "RetSByteResult"); + private final static QName _RetUShortResult_QNAME = new QName("http://tempuri.org/", "RetUShortResult"); + private final static QName _RetObjectResult_QNAME = new QName("http://tempuri.org/", "RetObjectResult"); + private final static QName _InDecimal_QNAME = new QName("http://tempuri.org/", "inDecimal"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.tempuri + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inChar") + public JAXBElement createInChar(Integer value) { + return new JAXBElement(_InChar_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetQNameResult") + public JAXBElement createRetQNameResult(QName value) { + return new JAXBElement(_RetQNameResult_QNAME, QName.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inDouble") + public JAXBElement createInDouble(Double value) { + return new JAXBElement(_InDouble_QNAME, Double.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetSingleResult") + public JAXBElement createRetSingleResult(Float value) { + return new JAXBElement(_RetSingleResult_QNAME, Float.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetDoubleResult") + public JAXBElement createRetDoubleResult(Double value) { + return new JAXBElement(_RetDoubleResult_QNAME, Double.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inULong") + public JAXBElement createInULong(BigInteger value) { + return new JAXBElement(_InULong_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetByteArrayResult") + public JAXBElement createRetByteArrayResult(byte[] value) { + return new JAXBElement(_RetByteArrayResult_QNAME, byte[].class, null, ((byte[]) value)); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateTimeOffset }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetDateTimeOffsetResult") + public JAXBElement createRetDateTimeOffsetResult(DateTimeOffset value) { + return new JAXBElement(_RetDateTimeOffsetResult_QNAME, DateTimeOffset.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetUriResult") + public JAXBElement createRetUriResult(String value) { + return new JAXBElement(_RetUriResult_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetBoolResult") + public JAXBElement createRetBoolResult(Boolean value) { + return new JAXBElement(_RetBoolResult_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inUShort") + public JAXBElement createInUShort(Integer value) { + return new JAXBElement(_InUShort_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inDateTime") + public JAXBElement createInDateTime(XMLGregorianCalendar value) { + return new JAXBElement(_InDateTime_QNAME, XMLGregorianCalendar.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inObject") + public JAXBElement createInObject(Object value) { + return new JAXBElement(_InObject_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inSByte") + public JAXBElement createInSByte(Byte value) { + return new JAXBElement(_InSByte_QNAME, Byte.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inQName") + public JAXBElement createInQName(QName value) { + return new JAXBElement(_InQName_QNAME, QName.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inUInt") + public JAXBElement createInUInt(Long value) { + return new JAXBElement(_InUInt_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inBool") + public JAXBElement createInBool(Boolean value) { + return new JAXBElement(_InBool_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inShort") + public JAXBElement createInShort(Short value) { + return new JAXBElement(_InShort_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetIntResult") + public JAXBElement createRetIntResult(Integer value) { + return new JAXBElement(_RetIntResult_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetByteResult") + public JAXBElement createRetByteResult(Short value) { + return new JAXBElement(_RetByteResult_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetUIntResult") + public JAXBElement createRetUIntResult(Long value) { + return new JAXBElement(_RetUIntResult_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inString") + public JAXBElement createInString(String value) { + return new JAXBElement(_InString_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetDateTimeResult") + public JAXBElement createRetDateTimeResult(XMLGregorianCalendar value) { + return new JAXBElement(_RetDateTimeResult_QNAME, XMLGregorianCalendar.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inGuid") + public JAXBElement createInGuid(String value) { + return new JAXBElement(_InGuid_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetULongResult") + public JAXBElement createRetULongResult(BigInteger value) { + return new JAXBElement(_RetULongResult_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inInt") + public JAXBElement createInInt(Integer value) { + return new JAXBElement(_InInt_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inByteArray") + public JAXBElement createInByteArray(byte[] value) { + return new JAXBElement(_InByteArray_QNAME, byte[].class, null, ((byte[]) value)); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inFloat") + public JAXBElement createInFloat(Float value) { + return new JAXBElement(_InFloat_QNAME, Float.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetTimeSpanResult") + public JAXBElement createRetTimeSpanResult(Duration value) { + return new JAXBElement(_RetTimeSpanResult_QNAME, Duration.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetGuidResult") + public JAXBElement createRetGuidResult(String value) { + return new JAXBElement(_RetGuidResult_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inLong") + public JAXBElement createInLong(Long value) { + return new JAXBElement(_InLong_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inUri") + public JAXBElement createInUri(String value) { + return new JAXBElement(_InUri_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetStringResult") + public JAXBElement createRetStringResult(String value) { + return new JAXBElement(_RetStringResult_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetDecimalResult") + public JAXBElement createRetDecimalResult(BigDecimal value) { + return new JAXBElement(_RetDecimalResult_QNAME, BigDecimal.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inTimeSpan") + public JAXBElement createInTimeSpan(Duration value) { + return new JAXBElement(_InTimeSpan_QNAME, Duration.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetLongResult") + public JAXBElement createRetLongResult(Long value) { + return new JAXBElement(_RetLongResult_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetShortResult") + public JAXBElement createRetShortResult(Short value) { + return new JAXBElement(_RetShortResult_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inByte") + public JAXBElement createInByte(Short value) { + return new JAXBElement(_InByte_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateTimeOffset }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inDateTimeOffset") + public JAXBElement createInDateTimeOffset(DateTimeOffset value) { + return new JAXBElement(_InDateTimeOffset_QNAME, DateTimeOffset.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetFloatResult") + public JAXBElement createRetFloatResult(Float value) { + return new JAXBElement(_RetFloatResult_QNAME, Float.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetCharResult") + public JAXBElement createRetCharResult(Integer value) { + return new JAXBElement(_RetCharResult_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inSingle") + public JAXBElement createInSingle(Float value) { + return new JAXBElement(_InSingle_QNAME, Float.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetSByteResult") + public JAXBElement createRetSByteResult(Byte value) { + return new JAXBElement(_RetSByteResult_QNAME, Byte.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetUShortResult") + public JAXBElement createRetUShortResult(Integer value) { + return new JAXBElement(_RetUShortResult_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetObjectResult") + public JAXBElement createRetObjectResult(Object value) { + return new JAXBElement(_RetObjectResult_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://tempuri.org/", name = "inDecimal") + public JAXBElement createInDecimal(BigDecimal value) { + return new JAXBElement(_InDecimal_QNAME, BigDecimal.class, null, value); + } + +} Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/README URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/README?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/README (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/README Mon Jul 11 21:10:36 2011 @@ -0,0 +1,24 @@ +This example shows how to use Axis2/JAXWS in a servlet container. You must +have Maven 2.x installed to build this example. To build type: + +$ mvn install war:war + +Rename the resultant war as jaxws-samples.war and drop it into any servlet engine. +The WSDL file for the service should be viewable at: + +http://yourhost:port/jaxws-samples/services/EchoService12.EchoService12Port +http://yourhost:port/jaxws-samples/services/EchoService.EchoServicePort +http://yourhost:port/jaxws-samples/services/MtomSampleService12.MtomSamplePort +http://yourhost:port/jaxws-samples/services/MtomSampleService.MtomSamplePort +http://yourhost:port/jaxws-samples/services/PingService12.PingService12Port +http://yourhost:port/jaxws-samples/services/PingService.PingServicePort + +Here's the main page with some description of the tests: + +http://yourhost:port/jaxws-samples/ + +You can use the sample jsp pages to drive/test the web service" + +http://yourhost:port/jaxws-samples/demoMTOM +http://yourhost:port/jaxws-samples/demoEchoPing + Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/pom.xml URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/pom.xml?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/pom.xml (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/pom.xml Mon Jul 11 21:10:36 2011 @@ -0,0 +1,182 @@ + + + + 4.0.0 + org.apache.axis2.examples + jaxws-samples + JAXWS Samples - Echo, Ping, MTOM + 1.6.0 + war + + + javax.servlet + servlet-api + 2.3 + provided + + + org.apache.axis2 + axis2-kernel + 1.6.0 + + + org.apache.axis2 + axis2-jaxws + 1.6.0 + + + org.apache.axis2 + axis2-codegen + 1.6.0 + + + org.apache.axis2 + axis2-adb + 1.6.0 + + + org.apache.axis2 + addressing + 1.6.0 + mar + + + com.sun.xml.ws + jaxws-rt + 2.1.3 + + + javax.xml.ws + jaxws-api + + + com.sun.xml.bind + jaxb-impl + + + com.sun.xml.messaging.saaj + saaj-impl + + + com.sun.xml.stream.buffer + streambuffer + + + com.sun.xml.stream + sjsxp + + + org.jvnet.staxex + stax-ex + + + com.sun.org.apache.xml.internal + resolver + + + org.jvnet + mimepull + + + + + + + + + maven-compiler-plugin + 2.3.2 + + 1.5 + 1.5 + 1.5 + + + + maven-dependency-plugin + 2.2 + + + copy-modules + prepare-package + + copy-dependencies + + + ${project.build.directory}/modules + mar + + + + + + org.apache.maven.plugins + maven-war-plugin + 2.1.1 + + jaxws-samples + ${basedir}/src/webapp + + false + + + + ${project.build.directory}/modules/ + WEB-INF/lib + + addressing*.mar + + + + + + + src/main + src/test + + + src/main + + **/*.xml + + + + + + src/test + + **/*.xml + **/*.properties + **/*.wsdl + + + + + + + apache.snapshots + Apache Snapshot Repository + http://repository.apache.org/snapshots + + false + + + + Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/SampleClient.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/SampleClient.java?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/SampleClient.java (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/SampleClient.java Mon Jul 11 21:10:36 2011 @@ -0,0 +1,554 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.axis2.jaxws.samples.client; + +import org.apache.axis2.jaxws.samples.client.echo.EchoService12PortProxy; +import org.apache.axis2.jaxws.samples.client.echo.EchoServiceCallbackHandler; +import org.apache.axis2.jaxws.samples.client.echo.EchoServicePortProxy; +import org.apache.axis2.jaxws.samples.client.ping.PingService12PortProxy; +import org.apache.axis2.jaxws.samples.client.ping.PingServicePortProxy; +import org.apache.axis2.jaxws.samples.echo.EchoStringInput; +import org.apache.axis2.jaxws.samples.echo.EchoStringResponse; +import org.apache.axis2.jaxws.samples.ping.ObjectFactory; +import org.apache.axis2.jaxws.samples.ping.PingStringInput; +import org.apache.axis2.jaxws.ClientConfigurationFactory; +import org.apache.axis2.metadata.registry.MetadataFactoryRegistry; +import org.apache.axis2.AxisFault; +import org.apache.axis2.deployment.FileSystemConfigurator; +import org.apache.axis2.context.ConfigurationContextFactory; +import org.apache.axis2.context.ConfigurationContext; + +import javax.xml.namespace.QName; +import javax.xml.ws.BindingProvider; +import java.util.concurrent.Future; +import java.net.URL; + +/** + * SampleClient + * main entry point for thinclient jar sample + * and worker class to communicate with the services + */ +public class SampleClient { + + private int timeout = 240; // Error timeout in seconds + private static final int SLEEPER = 2; // Poll delay for async + private String urlHost = "localhost"; + private String urlPort = "8080"; + private static final String CONTEXT_BASE = "/jaxws-samples/services/"; + private static final String PING_CONTEXT = CONTEXT_BASE + "PingService.PingServicePort"; + private static final String ECHO_CONTEXT = CONTEXT_BASE + "EchoService.EchoServicePort"; + private static final String PING_CONTEXT12 = CONTEXT_BASE + "PingService12.PingService12Port"; + private static final String ECHO_CONTEXT12 = CONTEXT_BASE + "EchoService12.EchoService12Port"; + private String urlSuffix = ""; + private String message = "HELLO"; + private String servtype = "async"; + private String uriString = "http://" + urlHost + ":" + urlPort; + private Boolean wireasync = true; + private Boolean soap12 = false; + private int count = 1; + private ClientConfigurationFactory clientConfigurationFactory = null; + + /** + * main() + *

+ * see printusage() for command-line arguments + * + * @param args + */ + public static void main(String[] args) { + SampleClient sample = new SampleClient(); + sample.parseArgs(args); + sample.CallService(); + } + + /** + * parseArgs Read and interpret the command-line arguments + * + * @param args + */ + public void parseArgs(String[] args) { + if (args.length >= 1) { + for (int i = 0; i < args.length; i++) { + try { + if ('-' == args[i].charAt(0)) { + switch (args[i].charAt(1)) { + case '?': + printUsage(null); + System.exit(0); + break; + case 'h': + case 'H': + urlHost = args[++i]; + break; + case 'p': + case 'P': + urlPort = args[++i]; + break; + case 'f': + case 'F': + urlSuffix = args[++i]; + break; + case 'm': + case 'M': + message = args[++i]; + break; + case 's': + case 'S': + servtype = args[++i]; + if ((!servtype.equalsIgnoreCase("async")) && + (!servtype.equalsIgnoreCase("echo")) && + (!servtype.equalsIgnoreCase("ping"))) { + System.out + .println("ERROR: Attempt to invoke a service that is not supported"); + printUsage(null); + System.exit(0); + } + break; + case 't': + case 'T': + timeout = new Integer(args[++i]).intValue(); + break; + case 'c': + case 'C': + count = new Integer(args[++i]).intValue(); + break; + case 'w': + case 'W': + String parm = args[++i]; + if (parm.equalsIgnoreCase("y")) { + wireasync = true; + } else { + wireasync = false; + } + break; + case '1': + soap12 = false; + break; + case '2': + soap12 = true; + break; + default: + printUsage(args[i]); + System.exit(0); + break; + } + } + + } catch (Exception e) { + System.out.println("Invalid option format."); + printUsage(null); + System.exit(0); + } + uriString = "http://" + urlHost + ":" + urlPort; + } + } + } + + /** + * printUsage Print usage help to output + * + * @param invalidOpt - + * if non-null, is the invalid parameter + */ + private void printUsage(String invalidOpt) { + if (null != invalidOpt) { + System.out.println("Invalid Option: " + invalidOpt); + } + System.out.println("Usage:"); + System.out + .println(" runSampleSei -h [hostname] -p [port] -f [urlSuffix] -m [testMessage] -s [echo|ping|async] -t [timeout] -w [y|n] -c [count] -1 -2"); + System.out.println("Default values:"); + System.out.println(" hostname = localhost"); + System.out.println(" port = 8080"); + System.out.println(" testMessage = HELLO"); + System.out.println(" urlSuffix = /jaxws-samples/services/EchoService.EchoServicePort"); + System.out.println(" service = async"); + System.out.println(" timeout = 240 (seconds)"); + System.out.println(" wireasync = y (yes)"); + System.out.println(" count = 1"); + System.out.println(" -1 = soap 1.1 (default)"); + System.out.println(" -2 = soap 1.2"); + } + + /** + * CallService Parms were already read. Now call the service proxy classes + */ + void CallService() { + for (int index = 0; index < count; index++) { + if (soap12) { + if (servtype.equalsIgnoreCase("echo")) { + if (0 == urlSuffix.length()) { + urlSuffix = ECHO_CONTEXT12; + } + buildEcho12(uriString + urlSuffix, null, message); + } else if (servtype.equalsIgnoreCase("async")) { + if (0 == urlSuffix.length()) { + urlSuffix = ECHO_CONTEXT12; + } + + if (clientConfigurationFactory == null) { + ClientConfigurationFactory factory = initConfigurationFactory(); + buildAsync12(uriString + urlSuffix, null, message, timeout, wireasync); + destroyConfigurationFactory(factory); + } else { + buildAsync12(uriString + urlSuffix, null, message, timeout, wireasync); + } + } else { + if (0 == urlSuffix.length()) { + urlSuffix = PING_CONTEXT12; + } + buildPing12(uriString + urlSuffix, null, message); + } + } else { + if (servtype.equalsIgnoreCase("echo")) { + if (0 == urlSuffix.length()) { + urlSuffix = ECHO_CONTEXT; + } + buildEcho(uriString + urlSuffix, null, message); + } else if (servtype.equalsIgnoreCase("async")) { + if (0 == urlSuffix.length()) { + urlSuffix = ECHO_CONTEXT; + } + if (clientConfigurationFactory == null) { + ClientConfigurationFactory factory = initConfigurationFactory(); + buildAsync(uriString + urlSuffix, null, message, timeout, wireasync); + destroyConfigurationFactory(factory); + } else { + buildAsync(uriString + urlSuffix, null, message, timeout, wireasync); + } + } else { + if (0 == urlSuffix.length()) { + urlSuffix = PING_CONTEXT; + } + buildPing(uriString + urlSuffix, null, message); + } + } + } + } + + private ClientConfigurationFactory initConfigurationFactory() { + String axis2xml = System.getProperty("org.apache.axis2.jaxws.config.path"); + if (axis2xml == null) { + throw new RuntimeException("Please set org.apache.axis2.jaxws.config.path system property to a valid axis2.xml file (with addressing module enabled)"); + } + ClientConfigurationFactory factory = null; + try { + FileSystemConfigurator configurator = new FileSystemConfigurator(null, axis2xml); + factory = new ClientConfigurationFactory(configurator); + MetadataFactoryRegistry.setFactory(ClientConfigurationFactory.class, factory); + } catch (AxisFault axisFault) { + throw new RuntimeException(axisFault); + } + return factory; + } + + private void destroyConfigurationFactory(ClientConfigurationFactory factory) { + try { + factory.getClientConfigurationContext().terminate(); + } catch (AxisFault axisFault) { + throw new RuntimeException(axisFault); + } + } + + /** + * buildPing + * Call the ping service + * + * @param endpointURL The Service endpoint URL + * @param input The message string + * @return Boolean true if the ping works + */ + public boolean buildPing(String endpointURL, URL wsdlURL, String input) { + try { + PingServicePortProxy ping = new PingServicePortProxy(wsdlURL); + ping._getDescriptor().setEndpoint(endpointURL); + System.out.println(">> CLIENT: SEI Ping to " + endpointURL); + + // Configure SOAPAction properties + BindingProvider bp = (BindingProvider) (ping._getDescriptor() + .getProxy()); + bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, + endpointURL); + bp.getRequestContext().put(BindingProvider.SOAPACTION_USE_PROPERTY, + Boolean.TRUE); + bp.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY, + "pingOperation"); + + // Build the input object + PingStringInput pingParm = + new ObjectFactory().createPingStringInput(); + pingParm.setPingInput(input); + + // Call the service + ping.pingOperation(pingParm); + System.out.println(">> CLIENT: SEI Ping SUCCESS."); + return true; + } catch (Exception e) { + System.out.println(">> CLIENT: ERROR: SEI Ping EXCEPTION."); + e.printStackTrace(); + return false; + } + } + + /** + * buildEcho + * Call the Echo service (Sync) + * + * @param endpointURL The Service endpoint URL + * @param input The message string + * @return String from the service + */ + public String buildEcho(String endpointURL, URL wsdlURL, String input) { + String response = "ERROR!:"; + try { + EchoServicePortProxy echo = new EchoServicePortProxy(wsdlURL); + echo._getDescriptor().setEndpoint(endpointURL); + + // Configure SOAPAction properties + BindingProvider bp = (BindingProvider) (echo._getDescriptor() + .getProxy()); + bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, + endpointURL); + bp.getRequestContext().put(BindingProvider.SOAPACTION_USE_PROPERTY, + Boolean.TRUE); + bp.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY, + "echoOperation"); + + // Build the input object + EchoStringInput echoParm = + new org.apache.axis2.jaxws.samples.echo.ObjectFactory().createEchoStringInput(); + echoParm.setEchoInput(input); + System.out.println(">> CLIENT: SEI Echo to " + endpointURL); + + // Call the service + response = echo.echoOperation(echoParm).getEchoResponse(); + System.out.println(">> CLIENT: SEI Echo invocation complete."); + System.out.println(">> CLIENT: SEI Echo response is: " + response); + } catch (Exception e) { + System.out.println(">> CLIENT: ERROR: SEI Echo EXCEPTION."); + e.printStackTrace(); + return response + ">>>ECHO SERVICE EXCEPTION<<< "; + } + return response; + } + + /** + * buildAsync + * Call the Echo service (Async) + * + * @param endpointURL The Service endpoint URL + * @param input The message string + * @param waiting The Async timeout + * @param wireasync true to use Async on the wire + * @return String from the service + */ + public String buildAsync(String endpointURL, URL wsdlURL, String input, int waiting, Boolean wireasync) { + String response = "ERROR!:"; + try { + EchoServicePortProxy echo = new EchoServicePortProxy(wsdlURL); + echo._getDescriptor().setEndpoint(endpointURL); + + // Configure SOAPAction properties + BindingProvider bp = (BindingProvider) (echo._getDescriptor() + .getProxy()); + bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, + endpointURL); + bp.getRequestContext().put(BindingProvider.SOAPACTION_USE_PROPERTY, + Boolean.TRUE); + bp.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY, + "echoOperation"); + if (wireasync) { + bp.getRequestContext().put(org.apache.axis2.jaxws.util.Constants.USE_ASYNC_MEP, + Boolean.TRUE); + } + + // Set up the callback handler and create the input object + EchoServiceCallbackHandler callbackHandler = new EchoServiceCallbackHandler(); + EchoStringInput echoParm = + new org.apache.axis2.jaxws.samples.echo.ObjectFactory().createEchoStringInput(); + echoParm.setEchoInput(input); + System.out.println(">> CLIENT: SEI Async to " + endpointURL); + + // Call the service + Future resp = echo.echoOperationAsync(echoParm, callbackHandler); + Thread.sleep(1000); + while (!resp.isDone()) { + // Check for timeout + if (waiting <= 0) { + System.out + .println(">> CLIENT: ERROR - SEI Async Timeout waiting for reply."); + return response + "Async timeout waiting for reply."; + } + System.out + .println(">> CLIENT: SEI Async invocation still not complete"); + Thread.sleep(1000 * SLEEPER); + waiting -= SLEEPER; + } + + // Get the response and print it, then return + EchoStringResponse esr = callbackHandler.getResponse(); + System.out.println(">> CLIENT: SEI Async invocation complete."); + if (null != esr) { + response = esr.getEchoResponse(); + if (null != response) { + System.out.println(">> CLIENT: SEI Async response is: " + response); + } + } + } catch (Exception e) { + System.out.println(">> CLIENT: ERROR: SEI Async EXCEPTION."); + e.printStackTrace(); + return response + ">>>ASYNC SERVICE EXCEPTION<<<"; + } + return response; + } + + /** + * buildPing12 + * Call the ping service + * + * @param endpointURL The Service endpoint URL + * @param input The message string + * @return Boolean true if the ping works + */ + public boolean buildPing12(String endpointURL, URL wsdlURL, String input) { + try { + PingService12PortProxy ping = new PingService12PortProxy(wsdlURL); + ping._getDescriptor().setEndpoint(endpointURL); + System.out.println(">> CLIENT: SEI Ping to " + endpointURL); + + // Build the input object + PingStringInput pingParm = + new org.apache.axis2.jaxws.samples.ping.ObjectFactory().createPingStringInput(); + pingParm.setPingInput(input); + + // Call the service + ping.pingOperation(pingParm); + System.out.println(">> CLIENT: SEI Ping SUCCESS."); + return true; + } catch (Exception e) { + System.out.println(">> CLIENT: ERROR: SEI Ping EXCEPTION."); + e.printStackTrace(); + return false; + } + } + + /** + * buildEcho12 + * Call the Echo service (Sync) + * + * @param endpointURL The Service endpoint URL + * @param input The message string + * @return String from the service + */ + public String buildEcho12(String endpointURL, URL wsdlURL, String input) { + String response = "ERROR!:"; + try { + EchoService12PortProxy echo = new EchoService12PortProxy(wsdlURL); + echo._getDescriptor().setEndpoint(endpointURL); + + // Build the input object + EchoStringInput echoParm = + new org.apache.axis2.jaxws.samples.echo.ObjectFactory().createEchoStringInput(); + echoParm.setEchoInput(input); + + System.out.println(">> CLIENT: SEI Echo to " + endpointURL); + + // Call the service + response = echo.echoOperation(echoParm).getEchoResponse(); + + System.out.println(">> CLIENT: SEI Echo invocation complete."); + System.out.println(">> CLIENT: SEI Echo response is: " + response); + } catch (Exception e) { + System.out.println(">> CLIENT: ERROR: SEI Echo EXCEPTION."); + e.printStackTrace(); + return response + ">>>ECHO SERVICE EXCEPTION<<< "; + } + return response; + } + + /** + * buildAsync12 + * Call the Echo service (Async) + * + * @param endpointURL The Service endpoint URL + * @param input The message string + * @param waiting The Async timeout + * @param wireasync true to use Async on the wire + * @return String from the service + */ + public String buildAsync12(String endpointURL, URL wsdlURL, String input, int waiting, Boolean wireasync) { + String response = "ERROR!:"; + try { + EchoService12PortProxy echo = new EchoService12PortProxy(wsdlURL); + echo._getDescriptor().setEndpoint(endpointURL); + + // Configure over-the-wire async if specified + if (wireasync) { + BindingProvider bp = (BindingProvider) (echo._getDescriptor() + .getProxy()); + bp.getRequestContext().put(org.apache.axis2.jaxws.util.Constants.USE_ASYNC_MEP, + Boolean.TRUE); + } + + // Set up the callback handler and create the input object + EchoServiceCallbackHandler callbackHandler = new EchoServiceCallbackHandler(); + EchoStringInput echoParm = + new org.apache.axis2.jaxws.samples.echo.ObjectFactory().createEchoStringInput(); + echoParm.setEchoInput(input); + System.out.println(">> CLIENT: SEI Async to " + endpointURL); + + // Call the service + Future resp = echo.echoOperationAsync(echoParm, callbackHandler); + Thread.sleep(1000); + while (!resp.isDone()) { + // Check for timeout + if (waiting <= 0) { + System.out + .println(">> CLIENT: ERROR - SEI Async Timeout waiting for reply."); + return response + "Async timeout waiting for reply."; + } + System.out + .println(">> CLIENT: SEI Async invocation still not complete"); + Thread.sleep(1000 * SLEEPER); + waiting -= SLEEPER; + } + + // Get the response and print it, then return + EchoStringResponse esr = callbackHandler.getResponse(); + System.out.println(">> CLIENT: SEI Async invocation complete."); + if (null != esr) { + response = esr.getEchoResponse(); + if (null != response) { + System.out.println(">> CLIENT: SEI Async response is: " + response); + } + } + + } catch (Exception e) { + System.out.println(">> CLIENT: ERROR: SEI Async EXCEPTION."); + e.printStackTrace(); + return response + ">>>ASYNC SERVICE EXCEPTION<<<"; + } + return response; + } + + public void setClientConfigurationFactory(ClientConfigurationFactory clientConfigurationFactory) { + this.clientConfigurationFactory = clientConfigurationFactory; + } +} + \ No newline at end of file Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService.java?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService.java (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService.java Mon Jul 11 21:10:36 2011 @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.axis2.jaxws.samples.client.echo; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import java.net.MalformedURLException; +import java.net.URL; + + +@WebServiceClient(name = "EchoService", targetNamespace = "http://org/apache/axis2/jaxws/samples/echo/", wsdlLocation = "WEB-INF/wsdl/Echo.wsdl") +public class EchoService + extends Service { + + private final static URL ECHOSERVICE_WSDL_LOCATION; + + static { + URL url = null; + try { + url = new URL("file:/WEB-INF/wsdl/Echo.wsdl"); + } catch (MalformedURLException e) { + e.printStackTrace(); + } + ECHOSERVICE_WSDL_LOCATION = url; + } + + public EchoService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public EchoService() { + super(ECHOSERVICE_WSDL_LOCATION, new QName("http://org/apache/axis2/jaxws/samples/echo/", "EchoService")); + } + + /** + * @return returns EchoServicePortType + */ + @WebEndpoint(name = "EchoServicePort") + public EchoServicePortTypeClient getEchoServicePort() { + return (EchoServicePortTypeClient) super.getPort(new QName("http://org/apache/axis2/jaxws/samples/echo/", "EchoServicePort"), EchoServicePortTypeClient.class); + } + +} Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12.java?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12.java (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12.java Mon Jul 11 21:10:36 2011 @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.axis2.jaxws.samples.client.echo; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import java.net.MalformedURLException; +import java.net.URL; + + +@WebServiceClient(name = "EchoService12", targetNamespace = "http://org/apache/axis2/jaxws/samples/echo/", wsdlLocation = "WEB-INF/wsdl/Echo12.wsdl") +public class EchoService12 + extends Service { + + private final static URL ECHOSERVICE12_WSDL_LOCATION; + + static { + URL url = null; + try { + url = new URL("file:/WEB-INF/wsdl/Echo12.wsdl"); + } catch (MalformedURLException e) { + e.printStackTrace(); + } + ECHOSERVICE12_WSDL_LOCATION = url; + } + + public EchoService12(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public EchoService12() { + super(ECHOSERVICE12_WSDL_LOCATION, new QName("http://org/apache/axis2/jaxws/samples/echo/", "EchoService12")); + } + + /** + * @return returns EchoService12PortType + */ + @WebEndpoint(name = "EchoService12Port") + public EchoService12PortTypeClient getEchoService12Port() { + return (EchoService12PortTypeClient) super.getPort(new QName("http://org/apache/axis2/jaxws/samples/echo/", "EchoService12Port"), EchoService12PortTypeClient.class); + } + +} Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12PortProxy.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12PortProxy.java?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12PortProxy.java (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12PortProxy.java Mon Jul 11 21:10:36 2011 @@ -0,0 +1,119 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.axis2.jaxws.samples.client.echo; + +import org.apache.axis2.jaxws.samples.echo.EchoStringInput; +import org.apache.axis2.jaxws.samples.echo.EchoStringResponse; + +import javax.xml.namespace.QName; +import javax.xml.transform.Source; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.BindingProvider; +import javax.xml.ws.Dispatch; +import javax.xml.ws.Response; +import javax.xml.ws.Service; +import java.net.URL; +import java.util.concurrent.Future; + +public class EchoService12PortProxy { + + protected Descriptor _descriptor; + + public class Descriptor { + private EchoService12 _service = null; + private org.apache.axis2.jaxws.samples.client.echo.EchoService12PortTypeClient _proxy = null; + private Dispatch _dispatch = null; + + public Descriptor() { + _service = new EchoService12(); + initCommon(); + } + + public Descriptor(URL wsdlLocation, QName serviceName) { + _service = new EchoService12(wsdlLocation, serviceName); + initCommon(); + } + + private void initCommon() { + _proxy = _service.getEchoService12Port(); + } + + public org.apache.axis2.jaxws.samples.client.echo.EchoService12PortTypeClient getProxy() { + return _proxy; + } + + public Dispatch getDispatch() { + if (_dispatch == null) { + QName portQName = new QName("http://org/apache/axis2/jaxws/samples/echo/", "EchoService12Port"); + _dispatch = _service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD); + + String proxyEndpointUrl = getEndpoint(); + BindingProvider bp = (BindingProvider) _dispatch; + String dispatchEndpointUrl = (String) bp.getRequestContext().get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY); + if (!dispatchEndpointUrl.equals(proxyEndpointUrl)) + bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, proxyEndpointUrl); + } + return _dispatch; + } + + public String getEndpoint() { + BindingProvider bp = (BindingProvider) _proxy; + return (String) bp.getRequestContext().get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY); + } + + public void setEndpoint(String endpointUrl) { + BindingProvider bp = (BindingProvider) _proxy; + bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointUrl); + + if (_dispatch != null) { + bp = (BindingProvider) _dispatch; + bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointUrl); + } + } + } + + public EchoService12PortProxy() { + _descriptor = new Descriptor(); + } + + public EchoService12PortProxy(URL wsdlLocation) { + _descriptor = new Descriptor(wsdlLocation, new QName("http://org/apache/axis2/jaxws/samples/echo/", "EchoService12")); + } + + public EchoService12PortProxy(URL wsdlLocation, QName serviceName) { + _descriptor = new Descriptor(wsdlLocation, serviceName); + } + + public Descriptor _getDescriptor() { + return _descriptor; + } + + public Response echoOperationAsync(EchoStringInput parameter) { + return _getDescriptor().getProxy().echoOperationAsync(parameter); + } + + public Future echoOperationAsync(EchoStringInput parameter, AsyncHandler asyncHandler) { + return _getDescriptor().getProxy().echoOperationAsync(parameter, asyncHandler); + } + + public EchoStringResponse echoOperation(EchoStringInput parameter) { + return _getDescriptor().getProxy().echoOperation(parameter); + } + +} \ No newline at end of file Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12PortTypeClient.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12PortTypeClient.java?rev=1145356&view=auto ============================================================================== --- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12PortTypeClient.java (added) +++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/client/echo/EchoService12PortTypeClient.java Mon Jul 11 21:10:36 2011 @@ -0,0 +1,71 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.axis2.jaxws.samples.client.echo; + +import org.apache.axis2.jaxws.samples.echo.EchoStringInput; +import org.apache.axis2.jaxws.samples.echo.EchoStringResponse; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.ParameterStyle; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; +import java.util.concurrent.Future; + + +@WebService(name = "EchoService12PortType", targetNamespace = "http://org/apache/axis2/jaxws/samples/echo/") +@SOAPBinding(parameterStyle = ParameterStyle.BARE) +public interface EchoService12PortTypeClient { + + + /** + * @param parameter + * @return returns javax.xml.ws.Response + */ + @WebMethod(operationName = "echoOperation", action = "echoOperation") + public Response echoOperationAsync( + @WebParam(name = "echoStringInput", targetNamespace = "http://org/apache/axis2/jaxws/samples/echo/", partName = "parameter") + EchoStringInput parameter); + + /** + * @param asyncHandler + * @param parameter + * @return returns java.util.concurrent.Future + */ + @WebMethod(operationName = "echoOperation", action = "echoOperation") + public Future echoOperationAsync( + @WebParam(name = "echoStringInput", targetNamespace = "http://org/apache/axis2/jaxws/samples/echo/", partName = "parameter") + EchoStringInput parameter, + @WebParam(name = "echoOperationResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * @param parameter + * @return returns org.apache.axis2.jaxws.samples.client.echo.EchoStringResponse + */ + @WebMethod(action = "echoOperation") + @WebResult(name = "echoStringResponse", targetNamespace = "http://org/apache/axis2/jaxws/samples/echo/", partName = "parameter") + public EchoStringResponse echoOperation( + @WebParam(name = "echoStringInput", targetNamespace = "http://org/apache/axis2/jaxws/samples/echo/", partName = "parameter") + EchoStringInput parameter); + +}