You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by wo...@apache.org on 2008/03/03 19:48:24 UTC
svn commit: r633234 [14/24] - in /webservices/axis2/trunk/java: ./
modules/jaxws-integration/ modules/jaxws-integration/test/
modules/jaxws-integration/test/client/ modules/jaxws-integration/test/org/
modules/jaxws-integration/test/org/apache/ modules/...
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/doclitwrapped/sei/DocLitWrappedProxy.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/doclitwrapped/sei/DocLitWrappedProxy.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/doclitwrapped/sei/DocLitWrappedProxy.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/doclitwrapped/sei/DocLitWrappedProxy.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,249 @@
+
+/*
+ * 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.proxy.doclitwrapped.sei;
+
+import java.util.concurrent.Future;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebParam.Mode;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.AsyncHandler;
+import javax.xml.ws.Holder;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.Response;
+import javax.xml.ws.ResponseWrapper;
+
+import org.test.proxy.doclitwrapped.FinOpResponse;
+import org.test.proxy.doclitwrapped.FinancialOperation;
+import org.test.proxy.doclitwrapped.ReturnType;
+import org.test.proxy.doclitwrapped.TwoWayHolder;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "DocLitWrappedProxy", targetNamespace = "http://doclitwrapped.proxy.test.org")
+public interface DocLitWrappedProxy {
+
+
+ /**
+ *
+ */
+ @WebMethod(action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @Oneway
+ @RequestWrapper(localName = "oneWayVoid", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.OneWayVoid")
+ public void oneWayVoid();
+
+ /**
+ *
+ * @param onewayStr
+ */
+ @WebMethod(action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @Oneway
+ @RequestWrapper(localName = "oneWay", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.sei.OneWay")
+ public void oneWay(
+ @WebParam(name = "oneway_str", targetNamespace = "")
+ String onewayStr);
+
+ /**
+ *
+ * @param twoWayHolderInt
+ * @param twoWayHolderStr
+ * @return
+ * returns javax.xml.ws.Response<doclitwrapped.proxy.test.org.sei.TwoWayHolder>
+ */
+ @WebMethod(operationName = "twoWayHolder", action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @RequestWrapper(localName = "twoWayHolder", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWayHolder")
+ @ResponseWrapper(localName = "twoWayHolder", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWayHolder")
+ public Response<TwoWayHolder> twoWayHolderAsync(
+ @WebParam(name = "twoWayHolder_str", targetNamespace = "")
+ String twoWayHolderStr,
+ @WebParam(name = "twoWayHolder_int", targetNamespace = "")
+ int twoWayHolderInt);
+
+ /**
+ *
+ * @param twoWayHolderInt
+ * @param asyncHandler
+ * @param twoWayHolderStr
+ * @return
+ * returns java.util.concurrent.Future<? extends java.lang.Object>
+ */
+ @WebMethod(operationName = "twoWayHolder", action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @RequestWrapper(localName = "twoWayHolder", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWayHolder")
+ @ResponseWrapper(localName = "twoWayHolder", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWayHolder")
+ public Future<?> twoWayHolderAsync(
+ @WebParam(name = "twoWayHolder_str", targetNamespace = "")
+ String twoWayHolderStr,
+ @WebParam(name = "twoWayHolder_int", targetNamespace = "")
+ int twoWayHolderInt,
+ @WebParam(name = "asyncHandler", targetNamespace = "")
+ AsyncHandler<TwoWayHolder> asyncHandler);
+
+ /**
+ *
+ * @param twoWayHolderInt
+ * @param twoWayHolderStr
+ */
+ @WebMethod(action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @RequestWrapper(localName = "twoWayHolder", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWayHolder")
+ @ResponseWrapper(localName = "twoWayHolder", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWayHolder")
+ public void twoWayHolder(
+ @WebParam(name = "twoWayHolder_str", targetNamespace = "", mode = Mode.INOUT)
+ Holder<String> twoWayHolderStr,
+ @WebParam(name = "twoWayHolder_int", targetNamespace = "", mode = Mode.INOUT)
+ Holder<Integer> twoWayHolderInt);
+
+ /**
+ *
+ * @param twowayStr
+ * @return
+ * returns javax.xml.ws.Response<doclitwrapped.proxy.test.org.sei.ReturnType>
+ */
+ @WebMethod(operationName = "twoWay", action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @RequestWrapper(localName = "twoWay", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWay")
+ @ResponseWrapper(localName = "ReturnType", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.sei.ReturnType")
+ public Response<ReturnType> twoWayAsync(
+ @WebParam(name = "twoway_str", targetNamespace = "")
+ String twowayStr);
+
+ /**
+ *
+ * @param twowayStr
+ * @param asyncHandler
+ * @return
+ * returns java.util.concurrent.Future<? extends java.lang.Object>
+ */
+ @WebMethod(operationName = "twoWay", action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @RequestWrapper(localName = "twoWay", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWay")
+ @ResponseWrapper(localName = "ReturnType", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.ReturnType")
+ public Future<?> twoWayAsync(
+ @WebParam(name = "twoway_str", targetNamespace = "")
+ String twowayStr,
+ @WebParam(name = "asyncHandler", targetNamespace = "")
+ AsyncHandler<ReturnType> asyncHandler);
+
+ /**
+ *
+ * @param twowayStr
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @WebResult(name = "return_str", targetNamespace = "")
+ @RequestWrapper(localName = "twoWay", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.TwoWay")
+ @ResponseWrapper(localName = "ReturnType", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.ReturnType")
+ public String twoWay(
+ @WebParam(name = "twoway_str", targetNamespace = "")
+ String twowayStr);
+
+
+ /**
+ *
+ * @param invokeStr
+ * @return
+ * returns javax.xml.ws.Response<org.apache.axis2.jaxws.proxy.doclitwrapped.sei.ReturnType>
+ */
+ @WebMethod(operationName = "invoke", action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @RequestWrapper(localName = "invoke", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.Invoke")
+ @ResponseWrapper(localName = "ReturnType", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.ReturnType")
+ public Response<ReturnType> invokeAsync(
+ @WebParam(name = "invoke_str", targetNamespace = "")
+ String invokeStr);
+
+ /**
+ *
+ * @param invokeStr
+ * @param asyncHandler
+ * @return
+ * returns java.util.concurrent.Future<? extends java.lang.Object>
+ */
+ @WebMethod(operationName = "invoke", action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @RequestWrapper(localName = "invoke", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.Invoke")
+ @ResponseWrapper(localName = "ReturnType", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.ReturnType")
+ public Future<?> invokeAsync(
+ @WebParam(name = "invoke_str", targetNamespace = "")
+ String invokeStr,
+ @WebParam(name = "asyncHandler", targetNamespace = "")
+ AsyncHandler<ReturnType> asyncHandler);
+
+ /**
+ *
+ * @param invokeStr
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(action = "http://doclitwrapped.proxy.test.org/twoWayReturn")
+ @WebResult(name = "return_str", targetNamespace = "")
+ @RequestWrapper(localName = "invoke", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.Invoke")
+ @ResponseWrapper(localName = "ReturnType", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.ReturnType")
+ public String invoke(
+ @WebParam(name = "invoke_str", targetNamespace = "")
+ String invokeStr);
+
+ /**
+ *
+ * @param op
+ * @return
+ * returns javax.xml.ws.Response<doclitwrapped.proxy.test.org.sei.FinOpResponse>
+ */
+ @WebMethod(operationName = "finOp", action = "http://doclitwrapped.proxy.test.org/finOp")
+ @RequestWrapper(localName = "finOp", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.FinOp")
+ @ResponseWrapper(localName = "finOpResponse", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.FinOpResponse")
+ public Response<FinOpResponse> finOpAsync(
+ @WebParam(name = "op", targetNamespace = "")
+ FinancialOperation op);
+
+ /**
+ *
+ * @param op
+ * @param asyncHandler
+ * @return
+ * returns java.util.concurrent.Future<? extends java.lang.Object>
+ */
+ @WebMethod(operationName = "finOp", action = "http://doclitwrapped.proxy.test.org/finOp")
+ @RequestWrapper(localName = "finOp", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.FinOp")
+ @ResponseWrapper(localName = "finOpResponse", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.FinOpResponse")
+ public Future<?> finOpAsync(
+ @WebParam(name = "op", targetNamespace = "")
+ FinancialOperation op,
+ @WebParam(name = "asyncHandler", targetNamespace = "")
+ AsyncHandler<FinOpResponse> asyncHandler);
+
+ /**
+ *
+ * @param op
+ * @return
+ * returns doclitwrapped.proxy.test.org.sei.FinancialOperation
+ */
+ @WebMethod(action = "http://doclitwrapped.proxy.test.org/finOp")
+ @WebResult(name = "response", targetNamespace = "")
+ @RequestWrapper(localName = "finOp", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.FinOp")
+ @ResponseWrapper(localName = "finOpResponse", targetNamespace = "http://doclitwrapped.proxy.test.org", className = "org.test.proxy.doclitwrapped.FinOpResponse")
+ public FinancialOperation finOp(
+ @WebParam(name = "op", targetNamespace = "")
+ FinancialOperation op);
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/doclitwrapped/sei/ProxyDocLitWrappedService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/doclitwrapped/sei/ProxyDocLitWrappedService.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/doclitwrapped/sei/ProxyDocLitWrappedService.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/doclitwrapped/sei/ProxyDocLitWrappedService.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,82 @@
+
+/*
+ * 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.proxy.doclitwrapped.sei;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+
+@WebServiceClient(name = "ProxyDocLitWrappedService", targetNamespace = "http://doclitwrapped.proxy.test.org", wsdlLocation = "ProxyDocLitWrapped.wsdl")
+public class ProxyDocLitWrappedService
+ extends Service
+{
+
+ private final static URL PROXYDOCLITWRAPPEDSERVICE_WSDL_LOCATION;
+ private static String wsdlLocation = "/test/org/apache/axis2/jaxws/proxy/doclitwrapped/META-INF/ProxyDocLitWrapped.wsdl";
+ static {
+ URL url = null;
+ try {
+ try{
+ String baseDir = new File(System.getProperty("basedir",".")).getCanonicalPath();
+ wsdlLocation = new File(baseDir + wsdlLocation).getAbsolutePath();
+ }catch(Exception e){
+
+ }
+ File file = new File(wsdlLocation);
+ url = file.toURL();
+
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ PROXYDOCLITWRAPPEDSERVICE_WSDL_LOCATION = url;
+ }
+
+ public ProxyDocLitWrappedService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public ProxyDocLitWrappedService() {
+ super(PROXYDOCLITWRAPPEDSERVICE_WSDL_LOCATION, new QName("http://doclitwrapped.proxy.test.org", "ProxyDocLitWrappedService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns DocLitWrappedProxy
+ */
+ @WebEndpoint(name = "ProxyDocLitWrappedPort")
+ public DocLitWrappedProxy getProxyDocLitWrappedPort() {
+ return (DocLitWrappedProxy)super.getPort(new QName("http://doclitwrapped.proxy.test.org", "ProxyDocLitWrappedPort"), DocLitWrappedProxy.class);
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/GorillaProxyImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/GorillaProxyImpl.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/GorillaProxyImpl.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/GorillaProxyImpl.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,138 @@
+/*
+ * 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.proxy.gorilla_dlw;
+
+import java.util.List;
+
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+
+import org.apache.axis2.jaxws.proxy.gorilla_dlw.data.Fruit;
+import org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.AssertFault;
+import org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface;
+
+/**
+ * Tests more complicated Document/Literal Wrapped scenarios
+ *
+ */
+@WebService(
+ targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw",
+ serviceName="GorillaService",
+ endpointInterface="org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface")
+public class GorillaProxyImpl implements GorillaInterface {
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoString(java.lang.String)
+ */
+ public String echoString(String data) throws AssertFault {
+ return data;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoString2(java.lang.String, javax.xml.ws.Holder)
+ */
+ public void echoString2(String data, Holder<String> inout)
+ throws AssertFault {
+ // Combine the strings together.
+ // The strings may be null on input
+ String result = null;
+ if (data != null && inout.value != null) {
+ result = data + inout.value;
+ } else {
+ result = (data != null) ? data : inout.value;
+ }
+ inout.value = result;
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoInt(java.lang.Integer)
+ */
+ public Integer echoInt(Integer data) throws AssertFault {
+ return data;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoAnyType(java.lang.Object)
+ */
+ public Object echoAnyType(Object data) throws AssertFault {
+ return data;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoStringList(java.util.List)
+ */
+ public List<String> echoStringList(List<String> data)
+ throws AssertFault {
+ return data;
+ }
+
+ public String[] echoStringListAlt(String[] data) throws AssertFault {
+ return data;
+ }
+
+ public List<List<String>> echoStringListArray(List<List<String>> data) throws AssertFault {
+ return data;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoStringArray(java.util.List)
+ */
+ public List<String> echoStringArray(List<String> data) throws AssertFault {
+ return data;
+ }
+
+ public String[] echoStringArrayAlt(String[] data) throws AssertFault {
+ return data;
+ }
+
+ public List<String> echoIndexedStringArray(List<String> data) throws AssertFault {
+ return data;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoString2Array(java.util.List, javax.xml.ws.Holder)
+ */
+ public void echoString2Array(List<String> data, Holder<List<String>> inout)
+ throws AssertFault {
+ inout.value.addAll(data);
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoIntArray(java.util.List)
+ */
+ public List<Integer> echoIntArray(List<Integer> data) throws AssertFault {
+ return data;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.proxy.gorilla_dlw.sei.GorillaInterface#echoAnyTypeArray(java.util.List)
+ */
+ public List<Object> echoAnyTypeArray(List<Object> data) throws AssertFault {
+ return data;
+ }
+
+ public Fruit echoEnum(Fruit data) throws AssertFault {
+ return data;
+ }
+
+ public List<Fruit> echoEnumArray(List<Fruit> data) throws AssertFault {
+ return data;
+ }
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/AssertFault.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/AssertFault.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/AssertFault.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/AssertFault.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,72 @@
+
+/*
+ * 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.proxy.gorilla_dlw.sei;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebFault(name = "assertFault", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+public class AssertFault
+ extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private org.apache.axis2.jaxws.proxy.gorilla_dlw.data.AssertFault faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AssertFault(String message, org.apache.axis2.jaxws.proxy.gorilla_dlw.data.AssertFault faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param cause
+ * @param message
+ * @param faultInfo
+ */
+ public AssertFault(String message, org.apache.axis2.jaxws.proxy.gorilla_dlw.data.AssertFault faultInfo, Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.apache.axis2.jaxws.proxy.gorilla_dlw.data.AssertFault
+ */
+ public org.apache.axis2.jaxws.proxy.gorilla_dlw.data.AssertFault getFaultInfo() {
+ return faultInfo;
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/GorillaInterface.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/GorillaInterface.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/GorillaInterface.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/GorillaInterface.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,303 @@
+
+/*
+ * 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.proxy.gorilla_dlw.sei;
+
+import java.util.List;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebParam.Mode;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+import org.apache.axis2.jaxws.proxy.gorilla_dlw.data.Fruit;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "GorillaInterface", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw")
+public interface GorillaInterface {
+
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.lang.String
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoString", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoString")
+ @ResponseWrapper(localName = "echoStringResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringResponse")
+ public String echoString(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ String data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @param inout
+ * @throws AssertFault
+ */
+ @WebMethod
+ @RequestWrapper(localName = "echoString2", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoString2")
+ @ResponseWrapper(localName = "echoString2Response", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoString2Response")
+ public void echoString2(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ String data,
+ @WebParam(name = "inout", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", mode = Mode.INOUT)
+ Holder<String> inout)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.lang.Integer
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoInt", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoInt")
+ @ResponseWrapper(localName = "echoIntResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoIntResponse")
+ public Integer echoInt(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ Integer data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns org.apache.axis2.jaxws.proxy.gorilla_dlw.data.Fruit
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoEnum", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoEnum")
+ @ResponseWrapper(localName = "echoEnumResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoEnumResponse")
+ public Fruit echoEnum(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ Fruit data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.lang.Object
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoAnyType", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoAnyType")
+ @ResponseWrapper(localName = "echoAnyTypeResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoAnyTypeResponse")
+ public Object echoAnyType(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ Object data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.util.List<java.util.List<java.lang.String>>
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoStringList", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringList")
+ @ResponseWrapper(localName = "echoStringListResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringListResponse")
+ public List<String> echoStringList(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ List<String> data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns String[]
+ * @throws AssertFault
+ */
+ // NOTE: The return and param are manually changed from List<String> to String[]
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoStringListAlt", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringListAlt")
+ @ResponseWrapper(localName = "echoStringListAltResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringListAltResponse")
+ public String[] echoStringListAlt(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ String[] data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.util.List<java.util.List<java.lang.String>>
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoStringListArray", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringListArray")
+ @ResponseWrapper(localName = "echoStringListArrayResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringListArrayResponse")
+ public List<List<String>> echoStringListArray(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ List<List<String>> data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.util.List<java.lang.String>
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoStringArray", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringArray")
+ @ResponseWrapper(localName = "echoStringArrayResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringArrayResponse")
+ public List<String> echoStringArray(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ List<String> data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns String[]
+ * @throws AssertFault
+ */
+ // NOTE: The return and param are manually changed from List<String> to String[]
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoStringArrayAlt", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringArrayAlt")
+ @ResponseWrapper(localName = "echoStringArrayAltResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoStringArrayAltResponse")
+ public String[] echoStringArrayAlt(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ String[] data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.util.List<java.lang.String>
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoIndexedStringArray", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoIndexedStringArray")
+ @ResponseWrapper(localName = "echoIndexedStringArrayResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoIndexedStringArrayResponse")
+ public List<String> echoIndexedStringArray(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ List<String> data)
+ throws AssertFault
+ ;
+
+
+ /**
+ *
+ * @param data
+ * @param inout
+ * @throws AssertFault
+ */
+ @WebMethod
+ @RequestWrapper(localName = "echoString2Array", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoString2Array")
+ @ResponseWrapper(localName = "echoString2ArrayResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoString2ArrayResponse")
+ public void echoString2Array(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ List<String> data,
+ @WebParam(name = "inout", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", mode = Mode.INOUT)
+ Holder<List<String>> inout)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.util.List<java.lang.Integer>
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoIntArray", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoIntArray")
+ @ResponseWrapper(localName = "echoIntArrayResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoIntArrayResponse")
+ public List<Integer> echoIntArray(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ List<Integer> data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.util.List<org.apache.axis2.jaxws.proxy.gorilla_dlw.data.Fruit>
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoEnumArray", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoEnumArray")
+ @ResponseWrapper(localName = "echoEnumArrayResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoEnumArrayResponse")
+ public List<Fruit> echoEnumArray(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ List<Fruit> data)
+ throws AssertFault
+ ;
+
+ /**
+ *
+ * @param data
+ * @return
+ * returns java.util.List<java.lang.Object>
+ * @throws AssertFault
+ */
+ @WebMethod
+ @WebResult(name = "result", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ @RequestWrapper(localName = "echoAnyTypeArray", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoAnyTypeArray")
+ @ResponseWrapper(localName = "echoAnyTypeArrayResponse", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data", className = "org.apache.axis2.jaxws.proxy.gorilla_dlw.data.EchoAnyTypeArrayResponse")
+ public List<Object> echoAnyTypeArray(
+ @WebParam(name = "data", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw/data")
+ List<Object> data)
+ throws AssertFault
+ ;
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/GorillaService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/GorillaService.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/GorillaService.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/gorilla_dlw/sei/GorillaService.java Mon Mar 3 10:47:38 2008
@@ -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.proxy.gorilla_dlw.sei;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "GorillaService", targetNamespace = "http://org/apache/axis2/jaxws/proxy/gorilla_dlw", wsdlLocation = "gorilla_dlw.wsdl")
+public class GorillaService
+ extends Service
+{
+
+ private final static URL GORILLASERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("file:/C:/compwsdl/gorilla_dlw.wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ GORILLASERVICE_WSDL_LOCATION = url;
+ }
+
+ public GorillaService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public GorillaService() {
+ super(GORILLASERVICE_WSDL_LOCATION, new QName("http://org/apache/axis2/jaxws/proxy/gorilla_dlw", "GorillaService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns GorillaInterface
+ */
+ @WebEndpoint(name = "GorillaPort")
+ public GorillaInterface getGorillaPort() {
+ return (GorillaInterface)super.getPort(new QName("http://org/apache/axis2/jaxws/proxy/gorilla_dlw", "GorillaPort"), GorillaInterface.class);
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/RPCLitImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/RPCLitImpl.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/RPCLitImpl.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/RPCLitImpl.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,171 @@
+/*
+ * 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.proxy.rpclit;
+
+import java.math.BigInteger;
+
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlList;
+import javax.xml.datatype.DatatypeConstants;
+import javax.xml.datatype.DatatypeFactory;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Holder;
+
+import org.apache.axis2.jaxws.proxy.rpclit.sei.RPCFault;
+import org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit;
+import org.apache.axis2.jaxws.TestLogger;
+import org.test.proxy.rpclit.ComplexAll;
+import org.test.proxy.rpclit.Enum;
+
+/**
+ *
+ *
+ */
+@WebService(serviceName="RPCLitService",
+ targetNamespace="http://org/apache/axis2/jaxws/proxy/rpclit",
+ endpointInterface="org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit")
+public class RPCLitImpl implements RPCLit {
+
+ public static DatatypeFactory df ;
+ public static XMLGregorianCalendar bday;
+ public static XMLGregorianCalendar holiday;
+ public static BigInteger bigInt1 = new BigInteger("1");
+ public static BigInteger bigInt2 = new BigInteger("2");
+ public static QName qname1 = new QName("urn://sample", "hello" );
+ public static QName qname2 = new QName("urn://sample", "world" );
+
+ static {
+ try {
+ df = DatatypeFactory.newInstance();
+ bday = df.newXMLGregorianCalendarDate(1964, 12, 3, DatatypeConstants.FIELD_UNDEFINED);
+ holiday = bday = df.newXMLGregorianCalendarDate(2007, 1, 1, DatatypeConstants.FIELD_UNDEFINED);
+ } catch (Exception e) {}
+ }
+
+
+
+ /**
+ * Echo the input
+ */
+ public String testSimple(String simpleIn) {
+ assertTrue(simpleIn != null); // According to JAX-WS an RPC service should never receive a null
+
+ // Test to ensure that returning null causes the proper exception
+ if (simpleIn.contains("returnNull")) {
+ return null;
+ }
+ return simpleIn;
+ }
+
+ /**
+ * Echo the input
+ */
+ public String testSimple2(String simple2In1, String simple2In2) {
+ return simple2In1 + simple2In2;
+ }
+
+ public QName[] testLists(
+ QName[] qNames,
+ XMLGregorianCalendar[] calendars,
+ String[] texts,
+ BigInteger[] bigInts,
+ Long[] longs,
+ Enum[] enums,
+ String[] text2,
+ ComplexAll all) {
+ assertTrue(qNames.length==2);
+ assertTrue(qNames[0].equals(qname1));
+ assertTrue(qNames[1].equals(qname2));
+
+ return qNames;
+ }
+
+ public XMLGregorianCalendar[] testCalendarList1(XMLGregorianCalendar[] cals) {
+ assertTrue(cals.length == 2);
+ assertTrue(cals[0].compare(bday) == 0);
+ assertTrue(cals[1].compare(holiday) == 0);
+ return cals;
+
+ }
+
+ public String[] testStringList2(String[] arg20) {
+
+ assertTrue(arg20.length==2);
+ assertTrue(arg20[0].equals("Hello"));
+ assertTrue(arg20[1].equals("World"));
+ return arg20;
+ }
+
+ public BigInteger[] testBigIntegerList3(BigInteger[] arg30) {
+ assertTrue(arg30.length==2);
+ assertTrue(arg30[0].compareTo(bigInt1) == 0);
+ assertTrue(arg30[1].compareTo(bigInt2) == 0);
+ return arg30;
+ }
+
+ public Long[] testLongList4(Long[] longs) {
+ assertTrue(longs.length==3);
+ assertTrue(longs[0] == 0);
+ assertTrue(longs[1] == 1);
+ assertTrue(longs[2] == 2);
+ return longs;
+ }
+
+ public Enum[] testEnumList5(Enum[] enums) {
+ assertTrue(enums.length==3);
+ assertTrue(enums[0] == Enum.ONE);
+ assertTrue(enums[1] == Enum.TWO);
+ assertTrue(enums[2] == Enum.THREE);
+ return enums;
+ }
+
+ public ComplexAll testComplexAll6(ComplexAll arg60) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public String[] testEnumList7(String[] arg70) {
+ assertTrue(arg70.length==2);
+ assertTrue(arg70[0].equals("Apple"));
+ assertTrue(arg70[0].equals("Orange"));
+ return arg70;
+ }
+
+ private void assertTrue(boolean value) throws RuntimeException {
+ if (!value) {
+ RuntimeException re = new RuntimeException();
+ TestLogger.logger.debug("Test FAILURE=" + re);
+ throw re;
+ }
+ }
+
+ public String testHeader(String bodyParam, String headerParam) {
+ return bodyParam + headerParam;
+ }
+
+ public void testFault() throws RPCFault {
+ throw new RPCFault("Throw RPCFault", 123);
+ }
+
+ public String testSimpleInOut(Holder<String> simpleInOut) {
+ return simpleInOut.value;
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCFault.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCFault.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCFault.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCFault.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,45 @@
+/*
+ * 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.proxy.rpclit.sei;
+
+import javax.xml.ws.WebFault;
+
+@WebFault(name = "myFault", targetNamespace = "http://org/apache/axis2/jaxws/proxy/rpclit")
+public class RPCFault extends Exception {
+
+ private int faultInfo;
+ public RPCFault() {
+ super();
+ }
+
+ public RPCFault(String message, int faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ public RPCFault(String message, int faultInfo,Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ public int getFaultInfo() {
+ return faultInfo;
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCLit.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCLit.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCLit.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCLit.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,249 @@
+
+/*
+ * 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.proxy.rpclit.sei;
+
+import java.math.BigInteger;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.WebParam.Mode;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.xml.bind.annotation.XmlList;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Holder;
+
+import org.test.proxy.rpclit.ComplexAll;
+import org.test.proxy.rpclit.Enum;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "RPCLit", targetNamespace = "http://org/apache/axis2/jaxws/proxy/rpclit")
+@SOAPBinding(style = Style.RPC)
+public interface RPCLit {
+
+
+ /**
+ *
+ * @param simpleIn
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(name = "simpleOut", partName = "simpleOut")
+ public String testSimple(
+ @WebParam(name = "simpleIn", partName = "simpleIn")
+ String simpleIn);
+
+ /**
+ *
+ * @param simpleInOut
+ * @return
+ * returns java.lang.String
+ * TESTS combination of out and return values
+ */
+ @WebMethod
+ @WebResult(name = "simpleOut", partName = "simpleOut")
+ public String testSimpleInOut(
+ @WebParam(name = "simpleInOut", partName = "simpleInOut", mode=Mode.INOUT)
+ Holder<String> simpleInOut);
+
+
+ /**
+ *
+ * @param simple2In1
+ * @param simple2In2
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(name = "simple2Out", partName = "simple2Out")
+ public String testSimple2(
+ @WebParam(name = "simple2In1", partName = "simpleIn1")
+ String simple2In1,
+ @WebParam(name = "simple2In2", partName = "simple2In2")
+ String simple2In2);
+
+ /**
+ *
+ * @param bodyParam
+ * @param headerParam
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(name = "headerReturn", header=true)
+ public String testHeader(
+ @WebParam(partName = "bodyParam")
+ String bodyParam,
+ @WebParam(name = "headerParam", header=true)
+ String headerParam);
+
+ /**
+ *
+ * @param arg70
+ * @param arg00
+ * @param arg10
+ * @param arg20
+ * @param arg30
+ * @param arg40
+ * @param arg50
+ * @param arg60
+ * @return
+ * returns javax.xml.namespace.QName[]
+ */
+ @XmlList
+ @WebMethod
+ @WebResult(name = "testListsReturn", partName = "testListsReturn")
+ public QName[] testLists(
+ @XmlList
+ @WebParam(name = "arg_0_0", partName = "arg_0_0")
+ QName[] arg00,
+ @XmlList
+ @WebParam(name = "arg_1_0", partName = "arg_1_0")
+ XMLGregorianCalendar[] arg10,
+ @XmlList
+ @WebParam(name = "arg_2_0", partName = "arg_2_0")
+ String[] arg20,
+ @XmlList
+ @WebParam(name = "arg_3_0", partName = "arg_3_0")
+ BigInteger[] arg30,
+ @XmlList
+ @WebParam(name = "arg_4_0", partName = "arg_4_0")
+ Long[] arg40,
+ @XmlList
+ @WebParam(name = "arg_5_0", partName = "arg_5_0")
+ Enum[] arg50,
+ @XmlList
+ @WebParam(name = "arg_7_0", partName = "arg_7_0")
+ String[] arg70,
+ @WebParam(name = "arg_6_0", partName = "arg_6_0")
+ ComplexAll arg60);
+
+ /**
+ *
+ * @param arg10
+ * @return
+ * returns javax.xml.datatype.XMLGregorianCalendar[]
+ */
+ @XmlList
+ @WebMethod
+ @WebResult(name = "testCalendarList1Return", partName = "testCalendarList1Return")
+ public XMLGregorianCalendar[] testCalendarList1(
+ @XmlList
+ @WebParam(name = "arg_1_0", partName = "arg_1_0")
+ XMLGregorianCalendar[] arg10);
+
+ /**
+ *
+ * @param arg20
+ * @return
+ * returns java.lang.String[]
+ */
+ @XmlList
+ @WebMethod
+ @WebResult(name = "testStringList2Return", partName = "testStringList2Return")
+ public String[] testStringList2(
+ @XmlList
+ @WebParam(name = "arg_2_0", partName = "arg_2_0")
+ String[] arg20);
+
+ /**
+ *
+ * @param arg30
+ * @return
+ * returns java.math.BigInteger[]
+ */
+ @XmlList
+ @WebMethod
+ @WebResult(name = "testBigIntegerList3Return", partName = "testBigIntegerList3Return")
+ public BigInteger[] testBigIntegerList3(
+ @XmlList
+ @WebParam(name = "arg_3_0", partName = "arg_3_0")
+ BigInteger[] arg30);
+
+ /**
+ *
+ * @param arg40
+ * @return
+ * returns java.lang.Long[]
+ */
+ @XmlList
+ @WebMethod
+ @WebResult(name = "testLongList4Return", partName = "testLongList4Return")
+ public Long[] testLongList4(
+ @XmlList
+ @WebParam(name = "arg_4_0", partName = "arg_4_0")
+ Long[] arg40);
+
+ /**
+ *
+ * @param arg50
+ * @return
+ * returns org.apache.axis2.jaxws.proxy.rpclit.Enum[]
+ */
+ @XmlList
+ @WebMethod
+ @WebResult(name = "testEnumList5Return", partName = "testEnumList5Return")
+ public Enum[] testEnumList5(
+ @XmlList
+ @WebParam(name = "arg_5_0", partName = "arg_5_0")
+ Enum[] arg50);
+
+ /**
+ *
+ * @param arg60
+ * @return
+ * returns org.apache.axis2.jaxws.proxy.rpclit.ComplexAll
+ */
+ @WebMethod
+ @WebResult(name = "testComplexAll6Return", partName = "testComplexAll6Return")
+ public ComplexAll testComplexAll6(
+ @WebParam(name = "arg_6_0", partName = "arg_6_0")
+ ComplexAll arg60);
+
+ /**
+ *
+ * @param arg70
+ * @return
+ * returns java.lang.String[]
+ */
+ @XmlList
+ @WebMethod
+ @WebResult(name = "testEnumList7Return", partName = "testEnumList7Return")
+ public String[] testEnumList7(
+ @XmlList
+ @WebParam(name = "arg_7_0", partName = "arg_7_0")
+ String[] arg70);
+
+ /**
+ * Tests Fault
+ */
+ @WebMethod(operationName="testFault", action="testFault")
+ public void testFault() throws RPCFault;
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCLitService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCLitService.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCLitService.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclit/sei/RPCLitService.java Mon Mar 3 10:47:38 2008
@@ -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.proxy.rpclit.sei;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "RPCLitService", targetNamespace = "http://org/apache/axis2/jaxws/proxy/rpclit", wsdlLocation = "RPCLit.wsdl")
+public class RPCLitService
+ extends Service
+{
+
+ private final static URL RPCLITSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("file:/C:/rpctest/sample/RPCLit.wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ RPCLITSERVICE_WSDL_LOCATION = url;
+ }
+
+ public RPCLitService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public RPCLitService() {
+ super(RPCLITSERVICE_WSDL_LOCATION, new QName("http://org/apache/axis2/jaxws/proxy/rpclit", "RPCLitService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns RPCLit
+ */
+ @WebEndpoint(name = "RPCLit")
+ public RPCLit getRPCLit() {
+ return (RPCLit)super.getPort(new QName("http://org/apache/axis2/jaxws/proxy/rpclit", "RPCLit"), RPCLit.class);
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/RPCLitSWAImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/RPCLitSWAImpl.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/RPCLitSWAImpl.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/RPCLitSWAImpl.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ * Copyright 2006 International Business Machines Corp.
+ *
+ * Licensed 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.proxy.rpclitswa;
+
+import javax.activation.DataHandler;
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+
+import org.apache.axis2.jaxws.proxy.rpclitswa.sei.RPCLitSWA;
+
+@WebService(targetNamespace="http://org/apache/axis2/jaxws/proxy/rpclitswa",
+ serviceName="RPCLitSWAService",
+ portName="RPCLitSWA",
+ endpointInterface="org.apache.axis2.jaxws.proxy.rpclitswa.sei.RPCLitSWA")
+public class RPCLitSWAImpl implements RPCLitSWA {
+
+ public void echo(String request, String dummyAttachmentIN,
+ Holder<DataHandler> dummyAttachmentINOUT, Holder<String> response,
+ Holder<String> dummyAttachmentOUT) {
+ response.value = request;
+ dummyAttachmentOUT.value = dummyAttachmentIN;
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/sei/RPCLitSWA.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/sei/RPCLitSWA.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/sei/RPCLitSWA.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/sei/RPCLitSWA.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,48 @@
+
+package org.apache.axis2.jaxws.proxy.rpclitswa.sei;
+
+import javax.activation.DataHandler;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebParam.Mode;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.xml.ws.Holder;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "RPCLitSWA",
+ targetNamespace = "http://org/apache/axis2/jaxws/proxy/rpclitswa",
+ wsdlLocation = "META-INF/RPCLitSWA.wsdl")
+@SOAPBinding(style = Style.RPC)
+public interface RPCLitSWA {
+
+
+ /**
+ *
+ * @param request
+ * @param dummyAttachmentINOUT
+ * @param dummyAttachmentOUT
+ * @param response
+ * @param dummyAttachmentIN
+ */
+ @WebMethod
+ public void echo(
+ @WebParam(name = "request", partName = "request")
+ String request,
+ @WebParam(name = "dummyAttachmentIN", partName = "dummyAttachmentIN")
+ String dummyAttachmentIN,
+ @WebParam(name = "dummyAttachmentINOUT", mode = Mode.INOUT, partName = "dummyAttachmentINOUT")
+ Holder<DataHandler> dummyAttachmentINOUT,
+ @WebParam(name = "response", mode = Mode.OUT, partName = "response")
+ Holder<String> response,
+ @WebParam(name = "dummyAttachmentOUT", mode = Mode.OUT, partName = "dummyAttachmentOUT")
+ Holder<String> dummyAttachmentOUT);
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/sei/RPCLitSWAService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/sei/RPCLitSWAService.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/sei/RPCLitSWAService.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/rpclitswa/sei/RPCLitSWAService.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,52 @@
+package org.apache.axis2.jaxws.proxy.rpclitswa.sei;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b15-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "RPCLitSWAService", targetNamespace = "http://org/apache/axis2/jaxws/proxy/rpclitswa", wsdlLocation = "rpclitswa.wsdl")
+public class RPCLitSWAService
+ extends Service
+{
+
+ private final static URL RPCLITSWAERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("file:/C:/defects/rpclitswa.wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ RPCLITSWAERVICE_WSDL_LOCATION = url;
+ }
+
+ public RPCLitSWAService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public RPCLitSWAService() {
+ super(RPCLITSWAERVICE_WSDL_LOCATION, new QName("http://org/apache/axis2/jaxws/proxy/rpclitswa", "RPCLitSWAService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns RPCLitSWA
+ */
+ @WebEndpoint(name = "RPCLitSWA")
+ public RPCLitSWA getRPCLitSWA() {
+ return (RPCLitSWA)super.getPort(new QName("http://org/apache/axis2/jaxws/proxy/rpclitswa", "RPCLitSWA"), RPCLitSWA.class);
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/Echo.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/Echo.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/Echo.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/Echo.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,39 @@
+/*
+ * 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.proxy.soap12;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+@WebService(name = "Echo", targetNamespace = "http://jaxws.axis2.apache.org/proxy/soap12")
+public interface Echo {
+
+ @WebMethod
+ @WebResult(name = "response", targetNamespace = "http://jaxws.axis2.apache.org/proxy/soap12")
+ @RequestWrapper(localName = "echo", targetNamespace = "http://jaxws.axis2.apache.org/proxy/soap12", className = "org.apache.axis2.jaxws.proxy.soap12.EchoType")
+ @ResponseWrapper(localName = "echoResponse", targetNamespace = "http://jaxws.axis2.apache.org/proxy/soap12", className = "org.apache.axis2.jaxws.proxy.soap12.EchoResponseType")
+ public String echo(
+ @WebParam(name = "request", targetNamespace = "http://jaxws.axis2.apache.org/proxy/soap12")
+ String request);
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/SOAP12EchoService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/SOAP12EchoService.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/SOAP12EchoService.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/SOAP12EchoService.java Mon Mar 3 10:47:38 2008
@@ -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.proxy.soap12;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+@WebServiceClient(name = "SOAP12EchoService",
+ targetNamespace = "http://jaxws.axis2.apache.org/proxy/soap12",
+ wsdlLocation = "SOAP12Echo.wsdl")
+public class SOAP12EchoService
+ extends Service
+{
+
+
+ private final static URL SOAP12ECHOSERVICE_WSDL_LOCATION;
+ private static String wsdlLocation = "/test/org/apache/axis2/jaxws/proxy/soap12/server/META-INF/SOAP12Echo.wsdl";
+ static {
+ URL url = null;
+ try {
+ try{
+ String baseDir = new File(System.getProperty("basedir",".")).getCanonicalPath();
+ wsdlLocation = new File(baseDir + wsdlLocation).getAbsolutePath();
+ }catch(Exception e){
+
+ }
+ File file = new File(wsdlLocation);
+ url = file.toURL();
+
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ SOAP12ECHOSERVICE_WSDL_LOCATION = url;
+ }
+
+ public SOAP12EchoService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public SOAP12EchoService() {
+ super(SOAP12ECHOSERVICE_WSDL_LOCATION, new QName("http://jaxws.axis2.apache.org/proxy/soap12", "SOAP12EchoService"));
+ }
+
+ @WebEndpoint(name = "EchoPort")
+ public Echo getEchoPort() {
+ return (Echo)super.getPort(new QName("http://jaxws.axis2.apache.org/proxy/soap12", "EchoPort"), Echo.class);
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/server/SOAP12EchoImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/server/SOAP12EchoImpl.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/server/SOAP12EchoImpl.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/server/SOAP12EchoImpl.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,106 @@
+/*
+ * 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.proxy.soap12.server;
+
+import org.apache.axis2.jaxws.TestLogger;
+
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service.Mode;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import javax.xml.ws.http.HTTPBinding;
+import javax.xml.ws.soap.SOAPBinding;
+
+@WebServiceProvider(targetNamespace="http://jaxws.axis2.apache.org/proxy/soap12",
+ serviceName="SOAP12EchoService",
+ wsdlLocation="META-INF/SOAP12Echo.wsdl",
+ portName="EchoPort")
+@BindingType(SOAPBinding.SOAP12HTTP_BINDING)
+@ServiceMode(Mode.MESSAGE)
+public class SOAP12EchoImpl implements Provider<String> {
+
+ private static final String SOAP11_NS_URI = "http://schemas.xmlsoap.org/soap/envelope/";
+ private static final String SOAP12_NS_URI = "http://www.w3.org/2003/05/soap-envelope";
+
+ private static final String SEND_SOAP11_RESPONSE = "RESPONSE-SOAP11";
+ private static final String SEND_SOAP12_RESPONSE = "RESPONSE-SOAP12";
+
+ public static final String SOAP11_ENVELOPE_HEAD =
+ "<?xml version='1.0' encoding='utf-8'?>" +
+ "<soapenv:Envelope xmlns:soapenv=\"" + SOAP11_NS_URI + "\">" +
+ "<soapenv:Header />" +
+ "<soapenv:Body>";
+
+ public static final String SOAP12_ENVELOPE_HEAD =
+ "<?xml version='1.0' encoding='utf-8'?>" +
+ "<soapenv:Envelope xmlns:soapenv=\"" + SOAP12_NS_URI + "\">" +
+ "<soapenv:Header />" +
+ "<soapenv:Body>";
+
+ public static final String SOAP11_ENVELOPE_TAIL =
+ "</soapenv:Body>" +
+ "</soapenv:Envelope>";
+
+ public static final String SOAP12_ENVELOPE_TAIL =
+ "</soapenv:Body>" +
+ "</soapenv:Envelope>";
+
+ public String invoke(String input) {
+ TestLogger.logger.debug("received request [" + input + "]");
+
+ // check the request to see if it contains the SOAP 1.1 namespace
+ // URI. if so, then that is an error and we should respond with
+ // a failure.
+ String status = "FAIL";
+ if (input.indexOf(SOAP12_NS_URI) > 0) {
+ status = "PASS";
+ TestLogger.logger.debug("the request contains the SOAP 1.2 namespace as expected.");
+ }
+ else {
+ TestLogger.logger.debug("the request did NOT contain the SOAP 1.2 namespace.");
+ TestLogger.logger.debug("sending back a failure");
+ }
+
+ // the contents of the response should contain the status
+ String responseBody =
+ "<echoResponse xmlns=\"http://jaxws.axis2.apache.org/proxy/soap12\">" +
+ "<response>" + status + "</response>" +
+ "</echoResponse>";
+
+ // build up the appropriate envelope type for the response
+ // based on what was the client requested.
+ StringBuffer response = new StringBuffer();
+ if (input.indexOf(SEND_SOAP11_RESPONSE) > 0) {
+ response.append(SOAP11_ENVELOPE_HEAD);
+ response.append(responseBody);
+ response.append(SOAP11_ENVELOPE_TAIL);
+ }
+ else if (input.indexOf(SEND_SOAP12_RESPONSE) > 0) {
+ response.append(SOAP12_ENVELOPE_HEAD);
+ response.append(responseBody);
+ response.append(SOAP12_ENVELOPE_TAIL);
+ }
+
+ TestLogger.logger.debug("sending response [" + response + "]");
+ return response.toString();
+ }
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/resourceinjection/ResourceInjectionPortTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/resourceinjection/ResourceInjectionPortTypeImpl.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/resourceinjection/ResourceInjectionPortTypeImpl.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/resourceinjection/ResourceInjectionPortTypeImpl.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,79 @@
+/*
+ * 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.resourceinjection;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+import javax.annotation.Resource;
+import javax.jws.WebService;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.handler.MessageContext;
+
+import org.apache.axis2.jaxws.resourceinjection.sei.ResourceInjectionPortType;
+import org.apache.axis2.jaxws.TestLogger;
+
+@WebService(serviceName="ResourceInjectionService",
+ endpointInterface="org.apache.axis2.jaxws.resourceinjection.sei.ResourceInjectionPortType")
+public class ResourceInjectionPortTypeImpl implements ResourceInjectionPortType {
+
+ @Resource
+ public WebServiceContext ctx = null;
+
+ public ResourceInjectionPortTypeImpl() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.axis2.jaxws.resourceinjection.sei.ResourceInjectionPortType#echo(java.lang.String)
+ */
+ public String echo(String arg) {
+ String response = "Response of Activities on Server;";
+ if(ctx != null){
+ response = response + "WebServiceContext injected;";
+ MessageContext msgContext = ctx.getMessageContext();
+ if(msgContext !=null){
+ response = response + "MessageContext was also found;";
+ }
+ else{
+ response = response + "MessageContext not found;";
+ }
+ }
+ else{
+ response = response + "WebServiceContext not found;";
+ }
+
+ return response;
+ }
+
+ @PostConstruct
+ public void initialize(){
+ //Called after resource injection and before a method is called.
+ TestLogger.logger.debug("Calling PostConstruct to Initialize");
+ }
+
+ @PreDestroy
+ public void distructor(){
+ //Called before the scope of request or session or application ends.
+
+ TestLogger.logger.debug("Calling PreDestroy ");
+
+ }
+
+}
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/resourceinjection/sei/ResourceInjectionPortType.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/resourceinjection/sei/ResourceInjectionPortType.java?rev=633234&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/resourceinjection/sei/ResourceInjectionPortType.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/resourceinjection/sei/ResourceInjectionPortType.java Mon Mar 3 10:47:38 2008
@@ -0,0 +1,47 @@
+
+/*
+ * 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.resourceinjection.sei;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+@WebService(name = "ResourceInjectionPortType", targetNamespace = "http://resourceinjection.sample.test.org")
+public interface ResourceInjectionPortType {
+
+
+ /**
+ *
+ * @param arg
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(action = "http://resourceinjection.sample.test.org/NewOperation")
+ @WebResult(name = "response", targetNamespace = "")
+ @RequestWrapper(localName = "echo", targetNamespace = "http://resourceinjection.sample.test.org", className = "org.test.sample.resourceinjection.Echo")
+ @ResponseWrapper(localName = "echoResponse", targetNamespace = "http://resourceinjection.sample.test.org", className = "org.test.sample.resourceinjection.EchoResponse")
+ public String echo(
+ @WebParam(name = "arg", targetNamespace = "")
+ String arg);
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org