glyn 02/02/20 05:46:09 Modified: java build.xml java/test/wsdl Wsdl2javaTestSuite.xml Added: java/test/wsdl/interop3/groupE Interop3GroupE.xml InteropTestDocLit.java InteropTestDocLitImpl.java InteropTestList.java InteropTestListImpl.java InteropTestRpcEnc.java InteropTestRpcEncImpl.java List.java SOAPStruct.java deploy.wsdd undeploy.wsdd java/test/wsdl/interop3/groupE/client InteropTestDocLitServiceTestCase.java InteropTestListServiceTestCase.java InteropTestRpcEncServiceTestCase.java Log: Add interop. round 3, group E tests. Note that the InteropTestDocLit runs with rpc/enc until Axis supports doc/lit on the server side. These tests do not export any new endpoints from apache.org and do not call any endpoints on the internet. Revision Changes Path 1.111 +1 -0 xml-axis/java/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-axis/java/build.xml,v retrieving revision 1.110 retrieving revision 1.111 diff -u -r1.110 -r1.111 --- build.xml 19 Feb 2002 17:38:18 -0000 1.110 +++ build.xml 20 Feb 2002 13:46:08 -0000 1.111 @@ -318,6 +318,7 @@ <include name="test/**/*.java" /> <exclude name="test/inout/*.java" /> <exclude name="test/wsdl/*/*.java" /> + <exclude name="test/wsdl/interop3/groupE/**/*.java" /> <exclude name="test/wsdl/Wsdl2javaTestSuite.java" unless="servlet.present"/> <exclude name="test/md5attach/*.java" unless="attachments.present"/> </javac> 1.74 +1 -1 xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml Index: Wsdl2javaTestSuite.xml =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml,v retrieving revision 1.73 retrieving revision 1.74 diff -u -r1.73 -r1.74 --- Wsdl2javaTestSuite.xml 19 Feb 2002 15:37:12 -0000 1.73 +++ Wsdl2javaTestSuite.xml 20 Feb 2002 13:46:08 -0000 1.74 @@ -540,7 +540,7 @@ <!-- Step 7: see test/wsdl/interop3/Import2TestCase.java --> <!-- Step 8: see test/wsdl/interop3/Import2TestCase.java --> - + <ant antfile="test/wsdl/interop3/groupE/Interop3GroupE.xml"/> <!-- Name clash test --> <wsdl2java url="test/wsdl/clash/clash.wsdl" 1.1 xml-axis/java/test/wsdl/interop3/groupE/Interop3GroupE.xml Index: Interop3GroupE.xml =================================================================== <?xml version="1.0"?> <!-- Build file for code/WSDL generation necessary for interop3/groupE tests. Notes: This is a build file for use with the Jakarta Ant build tool. Prerequisites: A successful Axis build configuration. Author: Glyn Normington <[EMAIL PROTECTED]> Copyright: Copyright (c) 2002 Apache Software Foundation. --> <project name="Interop3GroupE" default="Interop3GroupE.main"> <path id="test-classpath"> <pathelement location="${build.dest}" /> <pathelement path="${java.class.path}" /> <pathelement location="${java.home}/../lib/tools.jar"/> <fileset dir="../java/lib"> <include name="*.jar"/> </fileset> </path> <taskdef name="wsdl2java" classname="test.wsdl.Wsdl2javaAntTask"> <classpath refid="test-classpath" /> </taskdef> <taskdef name="java2wsdl" classname="test.wsdl.Java2WsdlAntTask"> <classpath refid="test-classpath" /> </taskdef> <target name="Interop3GroupE.main"> <!-- Use this to check the classpath if the ANT Task fails... --> <!-- <property name="test-classpath.property" refid="test-classpath"/> <echo message="Classpath for Interop3GroupE : ${test-classpath.property}"/> --> <!-- Copy files to work directory --> <copy todir="${build.dir}/work/test/wsdl/interop3/groupE" overwrite="yes"> <fileset dir="${test.dir}/wsdl/interop3/groupE"> <include name="**.java"/> <include name="**.wsdd"/> </fileset> </copy> <!-- Compile Java --> <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}"> <classpath refid="test-classpath" /> <include name="test/wsdl/interop3/groupE/**.java" /> <exclude name="test/wsdl/interop3/groupE/*TestCase.java" /> <exclude name="test/wsdl/interop3/groupE/*Impl.java" /> <exclude name="test/wsdl/interop3/groupE/PackageTests.java" /> </javac> <!-- Now create WSDL files from the Java classes --> <echo message="test/wsdl/interop3/groupE/InteropTestDocLit is rpc/enc and should be doc/lit"/> <java2wsdl output="build/work/test/wsdl/interop3/groupE/InteropTestDocLit.wsdl" className="test.wsdl.interop3.groupE.InteropTestDocLit" namespace="http://soapinterop.org/WSDLInteropTestDocLit" location="http://localhost:8080/axis/services/InteropTestDocLit"> <mapping namespace="http://soapinterop.org/WSDLInteropTestDocLit" package="test.wsdl.interop3.groupE"/> </java2wsdl> <java2wsdl output="build/work/test/wsdl/interop3/groupE/InteropTestRpcEnc.wsdl" className="test.wsdl.interop3.groupE.InteropTestRpcEnc" namespace="http://soapinterop.org/WSDLInteropTestRpcEnc" location="http://localhost:8080/axis/services/InteropTestRpcEnc"> <mapping namespace="http://soapinterop.org/WSDLInteropTestRpcEnc" package="test.wsdl.interop3.groupE"/> </java2wsdl> <java2wsdl output="build/work/test/wsdl/interop3/groupE/InteropTestList.wsdl" className="test.wsdl.interop3.groupE.InteropTestList" namespace="http://soapinterop.org/WSDLInteropTestList" location="http://localhost:8080/axis/services/InteropTestList"> <mapping namespace="http://soapinterop.org/WSDLInteropTestList" package="test.wsdl.interop3.groupE"/> </java2wsdl> <!-- Create Java files from the WSDL --> <wsdl2java url="build/work/test/wsdl/interop3/groupE/InteropTestDocLit.wsdl" output="build/work" deployscope="session" skeleton="no" noimports="no" verbose="no" testcase="no"> <mapping namespace="http://soapinterop.org/WSDLInteropTestDocLit" package="test.wsdl.interop3.groupE.client"/> </wsdl2java> <wsdl2java url="build/work/test/wsdl/interop3/groupE/InteropTestRpcEnc.wsdl" output="build/work" deployscope="session" skeleton="no" noimports="no" verbose="no" testcase="no"> <mapping namespace="http://soapinterop.org/WSDLInteropTestRpcEnc" package="test.wsdl.interop3.groupE.client"/> </wsdl2java> <wsdl2java url="build/work/test/wsdl/interop3/groupE/InteropTestList.wsdl" output="build/work" deployscope="session" skeleton="no" noimports="no" verbose="no" testcase="no"> <mapping namespace="http://soapinterop.org/WSDLInteropTestList" package="test.wsdl.interop3.groupE.client"/> </wsdl2java> <!-- Copy files to work directory --> <copy todir="${build.dir}/work/test/wsdl/interop3/groupE/client" overwrite="yes"> <fileset dir="${test.dir}/wsdl/interop3/groupE/client"> <include name="**.java"/> </fileset> </copy> <!-- Compile Java --> <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}"> <classpath refid="test-classpath" /> <include name="test/wsdl/interop3/groupE/**.java" /> <include name="test/wsdl/interop3/groupE/client/**.java" /> </javac> <echo message="end of InteropTestSuite.main"/> <echo message=""/> </target> </project> 1.1 xml-axis/java/test/wsdl/interop3/groupE/InteropTestDocLit.java Index: InteropTestDocLit.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package test.wsdl.interop3.groupE; /** * This test is part of the SOAP Builders round III interoperability testing * effort described at http://www.whitemesa.net/r3/plan.html. * * The test is in group E which requires a service (this class) coding by hand * which implements the operations, parameters, and binding style/use described * in a WSDL file available from the above web site. The WSDL file is used * only as a pseudo-code description of the service. * * Next WSDL is generated from the service and the WSDL used to create a * client which is then used to invoke the service. Other vendors should * also be able to use the same, generated WSDL to invoke the service. * * This interface is a JAX-RPC service definition interface as defined * by the JAX-RPC spec., especially chapter 5. * * @author Glyn Normington <[EMAIL PROTECTED]> */ public interface InteropTestDocLit extends java.rmi.Remote { public String echoString(String a) throws java.rmi.RemoteException; public String[] echoStringArray(String[] a) throws java.rmi.RemoteException; public SOAPStruct echoStruct(SOAPStruct a) throws java.rmi.RemoteException; public void echoVoid() throws java.rmi.RemoteException; } 1.1 xml-axis/java/test/wsdl/interop3/groupE/InteropTestDocLitImpl.java Index: InteropTestDocLitImpl.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package test.wsdl.interop3.groupE; /** * * @author Glyn Normington <[EMAIL PROTECTED]> */ public class InteropTestDocLitImpl implements InteropTestDocLit { public InteropTestDocLitImpl() throws java.rmi.RemoteException { } public String echoString(String a) throws java.rmi.RemoteException { return a; } public String[] echoStringArray(String[] a) throws java.rmi.RemoteException { return a; } public SOAPStruct echoStruct(SOAPStruct a) throws java.rmi.RemoteException { return a; } public void echoVoid() throws java.rmi.RemoteException { } } 1.1 xml-axis/java/test/wsdl/interop3/groupE/InteropTestList.java Index: InteropTestList.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package test.wsdl.interop3.groupE; /** * This test is part of the SOAP Builders round III interoperability testing * effort described at http://www.whitemesa.net/r3/plan.html. * * The test is in group E which requires a service (this class) coding by hand * which implements the operations, parameters, and binding style/use described * in a WSDL file available from the above web site. The WSDL file is used * only as a pseudo-code description of the service. * * Next WSDL is generated from the service and the WSDL used to create a * client which is then used to invoke the service. Other vendors should * also be able to use the same, generated WSDL to invoke the service. * * This interface is a JAX-RPC service definition interface as defined * by the JAX-RPC spec., especially chapter 5. * * @author Glyn Normington <[EMAIL PROTECTED]> */ public interface InteropTestList extends java.rmi.Remote { public List echoLinkedList(List param0) throws java.rmi.RemoteException; } 1.1 xml-axis/java/test/wsdl/interop3/groupE/InteropTestListImpl.java Index: InteropTestListImpl.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package test.wsdl.interop3.groupE; /** * * @author Glyn Normington <[EMAIL PROTECTED]> */ public class InteropTestListImpl implements InteropTestList { public List echoLinkedList(List param0) throws java.rmi.RemoteException { return param0; } } 1.1 xml-axis/java/test/wsdl/interop3/groupE/InteropTestRpcEnc.java Index: InteropTestRpcEnc.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package test.wsdl.interop3.groupE; /** * This test is part of the SOAP Builders round III interoperability testing * effort described at http://www.whitemesa.net/r3/plan.html. * * The test is in group E which requires a service (this class) coding by hand * which implements the operations, parameters, and binding style/use described * in a WSDL file available from the above web site. The WSDL file is used * only as a pseudo-code description of the service. * * Next WSDL is generated from the service and the WSDL used to create a * client which is then used to invoke the service. Other vendors should * also be able to use the same, generated WSDL to invoke the service. * * This interface is a JAX-RPC service definition interface as defined * by the JAX-RPC spec., especially chapter 5. * * @author Glyn Normington <[EMAIL PROTECTED]> */ public interface InteropTestRpcEnc extends java.rmi.Remote { public String echoString(String param0) throws java.rmi.RemoteException; public String[] echoStringArray(String[] param0) throws java.rmi.RemoteException; public SOAPStruct echoStruct(SOAPStruct param0) throws java.rmi.RemoteException; public void echoVoid() throws java.rmi.RemoteException; } 1.1 xml-axis/java/test/wsdl/interop3/groupE/InteropTestRpcEncImpl.java Index: InteropTestRpcEncImpl.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package test.wsdl.interop3.groupE; /** * * @author Glyn Normington <[EMAIL PROTECTED]> */ public class InteropTestRpcEncImpl implements InteropTestRpcEnc { public InteropTestRpcEncImpl() throws java.rmi.RemoteException { } public String echoString(String param0) throws java.rmi.RemoteException { return param0; } public String[] echoStringArray(String[] param0) throws java.rmi.RemoteException { return param0; } public SOAPStruct echoStruct(SOAPStruct param0) throws java.rmi.RemoteException { return param0; } public void echoVoid() throws java.rmi.RemoteException { } } 1.1 xml-axis/java/test/wsdl/interop3/groupE/List.java Index: List.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package test.wsdl.interop3.groupE; /** * Test linked list used by the WSDLInteropTestDocLitService. * * @author Glyn Normington <[EMAIL PROTECTED]> */ public class List { // items of the structure. String permits nulls. private int varInt; private String varString; private List child; /** * null constructor */ public List() {} /** * convenience constructor that sets all of the fields */ public List(int i, String s, List c) { this.varInt = i; this.varString = s; this.child = c; } /** * bean getter for VarInt */ public int getVarInt() { return varInt; } /** * bean setter for VarInt */ public void setVarInt(int varInt) { this.varInt = varInt; } /** * bean getter for VarString */ public String getVarString() { return varString; } /** * bean setter for VarString */ public void setVarString(String varString) { this.varString = varString; } /** * bean getter for Child */ public List getChild() { return child; } /** * bean setter for Child */ public void setChild(List c) { this.child = c; } /** * Equality comparison. */ public boolean equals(Object object) { if (!(object instanceof List)) return false; List that = (List)object; if (this.varInt != that.varInt) return false; if (this.varString == null) { if (that.varString != null) return false; } else { if (!this.varString.equals(that.varString)) return false; } if (this.child == null) { if (that.child != null) return false; } else { if (!this.child.equals(that.child)) return false; } return true; } /** * Printable representation */ public String toString() { return "{" + varInt + ", \"" + varString + "\", " + child.toString() + "}"; } } 1.1 xml-axis/java/test/wsdl/interop3/groupE/SOAPStruct.java Index: SOAPStruct.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package test.wsdl.interop3.groupE; /** * Test structure used by the WSDLInteropTestDocLitService. * Note: this implementation does not allow null values for varInt or varFloat. * * @author Glyn Normington <[EMAIL PROTECTED]> * @author Sam Ruby <[EMAIL PROTECTED]> */ public class SOAPStruct { // items of the structure. String permits nulls. private float varFloat; private int varInt; private String varString; /** * null constructor */ public SOAPStruct() {} /** * convenience constructor that sets all of the fields */ public SOAPStruct(float f, int i, String s) { this.varFloat = f; this.varInt = i; this.varString = s; } /** * bean getter for VarInt */ public int getVarInt() { return varInt; } /** * bean setter for VarInt */ public void setVarInt(int varInt) { this.varInt = varInt; } /** * bean getter for VarString */ public String getVarString() { return varString; } /** * bean setter for VarString */ public void setVarString(String varString) { this.varString = varString; } /** * bean getter for VarFloat */ public float getVarFloat() { return varFloat; } /** * bean setter for VarFloat */ public void setVarFloat(float varFloat) { this.varFloat=varFloat; } /** * Equality comparison. */ public boolean equals(Object object) { if (!(object instanceof SOAPStruct)) return false; SOAPStruct that = (SOAPStruct)object; if (this.varInt != that.varInt) return false; if (this.varFloat != that.varFloat) return false; if (this.varString == null) { if (that.varString != null) return false; } else { if (!this.varString.equals(that.varString)) return false; } return true; } /** * Printable representation */ public String toString() { return "{" + varInt + ", \"" + varString + "\", " + varFloat + "}"; } } 1.1 xml-axis/java/test/wsdl/interop3/groupE/deploy.wsdd Index: deploy.wsdd =================================================================== <!-- Use this file to deploy some handlers/chains and services --> <!-- Two ways to do this: --> <!-- java org.apache.axis.utils.Admin deploy.wsdd --> <!-- from the same directory that the Axis engine runs --> <!-- or --> <!-- java org.apache.axis.client.AdminClient deploy.wsdd --> <!-- after the axis server is running --> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <!-- Services from InteropTestDocLitService WSDL service --> <service name="InteropTestDocLit" provider="java:RPC"> <parameter name="className" value="test.wsdl.interop3.groupE.InteropTestDocLitImpl"/> <parameter name="allowedMethods" value="echoString echoStringArray echoStruct echoVoid"/> <parameter name="scope" value="Session"/> <typeMapping xmlns:ns="http://soapinterop.org/WSDLInteropTestDocLit" qname="ns:ArrayOf_SOAP-ENC_string" type="java:java.lang.String[]" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> <typeMapping xmlns:ns="http://soapinterop.org/WSDLInteropTestDocLit" qname="ns:SOAPStruct" type="java:test.wsdl.interop3.groupE.SOAPStruct" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </service> <!-- Services from InteropTestRpcEncService WSDL service --> <service name="InteropTestRpcEnc" provider="java:RPC"> <parameter name="className" value="test.wsdl.interop3.groupE.InteropTestRpcEncImpl"/> <parameter name="allowedMethods" value="echoString echoStringArray echoStruct echoVoid"/> <parameter name="scope" value="Session"/> <typeMapping xmlns:ns="http://soapinterop.org/WSDLInteropTestRpcEnc" qname="ns:ArrayOf_SOAP-ENC_string" type="java:java.lang.String[]" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> <typeMapping xmlns:ns="http://soapinterop.org/WSDLInteropTestRpcEnc" qname="ns:SOAPStruct" type="java:test.wsdl.interop3.groupE.SOAPStruct" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </service> <!-- Services from InteropTestListService WSDL service --> <service name="InteropTestList" provider="java:RPC"> <parameter name="className" value="test.wsdl.interop3.groupE.InteropTestListImpl"/> <parameter name="allowedMethods" value="echoLinkedList"/> <parameter name="scope" value="Session"/> <typeMapping xmlns:ns="http://soapinterop.org/WSDLInteropTestList" qname="ns:List" type="java:test.wsdl.interop3.groupE.List" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </service> </deployment> 1.1 xml-axis/java/test/wsdl/interop3/groupE/undeploy.wsdd Index: undeploy.wsdd =================================================================== <!-- Use this file to undeploy some handlers/chains and services --> <!-- Two ways to do this: --> <!-- java org.apache.axis.utils.Admin undeploy.wsdd --> <!-- from the same directory that the Axis engine runs --> <!-- or --> <!-- java org.apache.axis.client.AdminClient undeploy.wsdd --> <!-- after the axis server is running --> <undeployment xmlns="http://xml.apache.org/axis/wsdd/"> <!-- Services from InteropTestDocLitService WSDL service --> <service name="InteropTestDocLit"> </service> <!-- Services from InteropTestRpcEncService WSDL service --> <service name="InteropTestRpcEnc"> </service> <!-- Services from InteropTestListService WSDL service --> <service name="InteropTestList"> </service> </undeployment> 1.1 xml-axis/java/test/wsdl/interop3/groupE/client/InteropTestDocLitServiceTestCase.java Index: InteropTestDocLitServiceTestCase.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ /** * This file was based on a testcase auto-generated from WSDL by the * Apache Axis Wsdl2java emitter. * * @author Glyn Normington <[EMAIL PROTECTED]> */ package test.wsdl.interop3.groupE.client; import junit.framework.AssertionFailedError; public class InteropTestDocLitServiceTestCase extends junit.framework.TestCase { public InteropTestDocLitServiceTestCase(String name) { super(name); } public void testInteropTestDocLitEchoString() { InteropTestDocLit binding; try { binding = new InteropTestDocLitServiceLocator().getInteropTestDocLit(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { String input = "a string"; String value = binding.echoString(input); if (!value.equals(input)) { throw new AssertionFailedError("String echo failed"); } } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } public void testInteropTestDocLitEchoStringArray() { InteropTestDocLit binding; try { binding = new InteropTestDocLitServiceLocator().getInteropTestDocLit(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { String[] input = {"string 1", "string 2"}; String[] value = binding.echoStringArray(input); boolean equal = true; if (input.length != value.length) { equal = false; } else { for (int i = 0; i < value.length; i++) { if (!input[i].equals(value[i])) { equal = false; } } } if (!equal) { throw new AssertionFailedError("StringArray echo failed"); } } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } public void testInteropTestDocLitEchoStruct() { InteropTestDocLit binding; try { binding = new InteropTestDocLitServiceLocator().getInteropTestDocLit(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { SOAPStruct input = new SOAPStruct(3.142f, 3, "Pi"); SOAPStruct value = binding.echoStruct(input); if (value.getVarFloat() != input.getVarFloat() || value.getVarInt() != input.getVarInt() || !value.getVarString().equals(input.getVarString())) { throw new AssertionFailedError("Struct echo failed"); } } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } public void testInteropTestDocLitEchoVoid() { InteropTestDocLit binding; try { binding = new InteropTestDocLitServiceLocator().getInteropTestDocLit(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { binding.echoVoid(); } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } } 1.1 xml-axis/java/test/wsdl/interop3/groupE/client/InteropTestListServiceTestCase.java Index: InteropTestListServiceTestCase.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ /** * This file was based on a testcase auto-generated from WSDL by the * Apache Axis Wsdl2java emitter. * * @author Glyn Normington <[EMAIL PROTECTED]> */ package test.wsdl.interop3.groupE.client; import junit.framework.AssertionFailedError; public class InteropTestListServiceTestCase extends junit.framework.TestCase { public InteropTestListServiceTestCase(String name) { super(name); } public void testInteropTestListEchoLinkedList() { InteropTestList binding; try { binding = new InteropTestListServiceLocator().getInteropTestList(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { List node1 = new List(1, "last", null); List node2 = new List(2, "middle", node1); List list = new List(3, "first", node2); List value = binding.echoLinkedList(list); List vnode2 = value.getChild(); List vnode1 = null; if (vnode2 != null) { vnode1 = vnode2.getChild(); } if (value.getVarInt() != list.getVarInt() || !value.getVarString().equals(list.getVarString()) || vnode2 == null || vnode2.getVarInt() != node2.getVarInt() || !vnode2.getVarString().equals(node2.getVarString()) || vnode1 == null || vnode1.getVarInt() != node1.getVarInt() || !vnode1.getVarString().equals(node1.getVarString()) || vnode1.getChild() != null) { throw new AssertionFailedError("List echo failed"); } } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } } 1.1 xml-axis/java/test/wsdl/interop3/groupE/client/InteropTestRpcEncServiceTestCase.java Index: InteropTestRpcEncServiceTestCase.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Axis" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ /** * This file was based on a testcase auto-generated from WSDL by the * Apache Axis Wsdl2java emitter. * * @author Glyn Normington <[EMAIL PROTECTED]> */ package test.wsdl.interop3.groupE.client; import junit.framework.AssertionFailedError; public class InteropTestRpcEncServiceTestCase extends junit.framework.TestCase { public InteropTestRpcEncServiceTestCase(String name) { super(name); } public void testInteropTestRpcEncEchoString() { InteropTestRpcEnc binding; try { binding = new InteropTestRpcEncServiceLocator().getInteropTestRpcEnc(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { String input = "a string"; String value = binding.echoString(input); if (!value.equals(input)) { throw new AssertionFailedError("String echo failed"); } } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } public void testInteropTestRpcEncEchoStringArray() { InteropTestRpcEnc binding; try { binding = new InteropTestRpcEncServiceLocator().getInteropTestRpcEnc(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { String[] input = {"string 1", "string 2"}; String[] value = binding.echoStringArray(input); boolean equal = true; if (input.length != value.length) { equal = false; } else { for (int i = 0; i < value.length; i++) { if (!input[i].equals(value[i])) { equal = false; } } } if (!equal) { throw new AssertionFailedError("StringArray echo failed"); } } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } public void testInteropTestRpcEncEchoStruct() { InteropTestRpcEnc binding; try { binding = new InteropTestRpcEncServiceLocator().getInteropTestRpcEnc(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { SOAPStruct input = new SOAPStruct(3.142f, 3, "Pi"); SOAPStruct value = binding.echoStruct(input); if (value.getVarFloat() != input.getVarFloat() || value.getVarInt() != input.getVarInt() || !value.getVarString().equals(input.getVarString())) { throw new AssertionFailedError("Struct echo failed"); } } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } public void testInteropTestRpcEncEchoVoid() { InteropTestRpcEnc binding; try { binding = new InteropTestRpcEncServiceLocator().getInteropTestRpcEnc(); } catch (javax.xml.rpc.ServiceException jre) { throw new AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); try { binding.echoVoid(); } catch (java.rmi.RemoteException re) { throw new AssertionFailedError("Remote Exception caught: " + re); } } }