dims 2003/01/19 17:58:31 Modified: java/test/wsdl/soap12/additional soap12-add-test.wsdl Added: java/test/wsdl/soap12/additional build.xml Soap12AddTestDocBindingImpl.java Soap12AddTestRpcBindingImpl.java WhiteMesaSoap12AddTestSvcTestCase.java Log: Initial check-in of SOAP 1.2 additional tests Revision Changes Path 1.2 +1 -1 xml-axis/java/test/wsdl/soap12/additional/soap12-add-test.wsdl Index: soap12-add-test.wsdl =================================================================== RCS file: /home/cvs/xml-axis/java/test/wsdl/soap12/additional/soap12-add-test.wsdl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- soap12-add-test.wsdl 19 Jan 2003 21:25:10 -0000 1.1 +++ soap12-add-test.wsdl 20 Jan 2003 01:58:31 -0000 1.2 @@ -108,7 +108,7 @@ <part name="input4" type="xsd:anyType"/> </message> <message name="echoSimpleTypesAsStructOfSchemaTypesResponse"> - <part name="return" type="test:PolyMorphStruct"/> + <part name="return" type="types:SOAPStructTypes"/> </message> <!-- xmlp-11 echoInteger rpc operation --> 1.1 xml-axis/java/test/wsdl/soap12/additional/build.xml Index: build.xml =================================================================== <?xml version="1.0"?> <!DOCTYPE project [ <!ENTITY properties SYSTEM "file:../../../../xmls/properties.xml"> <!ENTITY paths SYSTEM "file:../../../../xmls/path_refs.xml"> <!ENTITY taskdefs SYSTEM "file:../../../../xmls/taskdefs.xml"> <!ENTITY taskdefs_post_compile SYSTEM "file:../../../../xmls/taskdefs_post_compile.xml"> <!ENTITY targets SYSTEM "file:../../../../xmls/targets.xml"> ]> <!-- =================================================================== <description> Test/Sample Component file for Axis Notes: This is a build file for use with the Jakarta Ant build tool. Prerequisites: jakarta-ant from http://jakarta.apache.org Build Instructions: To compile ant compile To execute ant run Author: Matt Seibert [EMAIL PROTECTED] Glen Daniels [EMAIL PROTECTED] Copyright: Copyright (c) 2002-2003 Apache Software Foundation. </description> ==================================================================== --> <project name="Round4" default="compile"> <property name="axis.home" location="../../../.." /> <property name="componentName" value="test/wsdl/soap12/additional" /> &properties; &paths; &taskdefs; &taskdefs_post_compile; &targets; <property name="root.dir" value="../../../.."/> <target name="clean"> <echo message="Removing ${build.dir}/classes/${componentName} and ${build.dir}/work/${componentName}" /> <delete dir="${build.dir}/classes/${componentName}"/> <delete dir="${build.dir}/work/${componentName}"/> </target> <target name="compile" depends="setenv"> <property name="testname" value="additional"/> <!-- generate skeletons --> <wsdl2java url="${axis.home}/test/wsdl/soap12/additional/soap12-add-test.wsdl" output="${root.dir}/build/work" skeletonDeploy="no" testCase="yes" timeout="-1" serverSide="yes"> <mapping namespace="http://whitemesa.net/wsdl/soap12-test" package="test.wsdl.soap12.additional"/> <mapping namespace="http://example.org/ts-tests/xsd" package="test.wsdl.soap12.additional.xsd"/> </wsdl2java> <mkdir dir="${build.dest}"/> <copy todir="${build.dir}/work/test/wsdl/soap12/additional" overwrite="yes"> <fileset dir="${axis.home}/test/wsdl/soap12/additional"> <include name="*TestCase.java"/> <include name="*Impl.java"/> </fileset> </copy> <!-- compile the code --> <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="on"> <classpath refid="classpath" /> <include name="test/wsdl/soap12/additional/**/*.java" /> </javac> </target> <target name="run" > <antcall target="execute-Component" /> </target> </project> 1.1 xml-axis/java/test/wsdl/soap12/additional/Soap12AddTestDocBindingImpl.java Index: Soap12AddTestDocBindingImpl.java =================================================================== /** * Soap12AddTestDocBindingImpl.java * * This file was auto-generated from WSDL * by the Apache Axis WSDL2Java emitter. */ package test.wsdl.soap12.additional; public class Soap12AddTestDocBindingImpl implements test.wsdl.soap12.additional.Soap12AddTestPortTypeDoc{ // getTime is a notification style operation and is unsupported. public java.lang.String echoString(java.lang.String inputString) throws java.rmi.RemoteException { return null; } public void echoSenderFault(java.lang.Object inElement) throws java.rmi.RemoteException { } public void echoReceiverFault(java.lang.Object inElement) throws java.rmi.RemoteException { } } 1.1 xml-axis/java/test/wsdl/soap12/additional/Soap12AddTestRpcBindingImpl.java Index: Soap12AddTestRpcBindingImpl.java =================================================================== /** * Soap12AddTestRpcBindingImpl.java * * This file was auto-generated from WSDL * by the Apache Axis WSDL2Java emitter. */ package test.wsdl.soap12.additional; public class Soap12AddTestRpcBindingImpl implements test.wsdl.soap12.additional.Soap12AddTestPortTypeRpc{ public void echoVoid() throws java.rmi.RemoteException { } public test.wsdl.soap12.additional.xsd.SOAPStruct echoSimpleTypesAsStruct(java.lang.String inputString, int inputInteger, float inputFloat) throws java.rmi.RemoteException { return null; } // getTime is a notification style operation and is unsupported. public java.lang.String echoString(java.lang.String inputString) throws java.rmi.RemoteException { return null; } public test.wsdl.soap12.additional.xsd.SOAPStructTypes echoSimpleTypesAsStructOfSchemaTypes(java.lang.Object input1, java.lang.Object input2, java.lang.Object input3, java.lang.Object input4) throws java.rmi.RemoteException { return null; } public int echoInteger(int inputInteger) throws java.rmi.RemoteException { return -3; } } 1.1 xml-axis/java/test/wsdl/soap12/additional/WhiteMesaSoap12AddTestSvcTestCase.java Index: WhiteMesaSoap12AddTestSvcTestCase.java =================================================================== /** * WhiteMesaSoap12AddTestSvcTestCase.java * * This file was auto-generated from WSDL * by the Apache Axis WSDL2Java emitter. */ package test.wsdl.soap12.additional; public class WhiteMesaSoap12AddTestSvcTestCase extends junit.framework.TestCase { public WhiteMesaSoap12AddTestSvcTestCase(java.lang.String name) { super(name); } // getTime is a notification style operation and is unsupported. public void test1Soap12AddTestDocPortEchoString() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation java.lang.String value = null; value = binding.echoString(new java.lang.String()); // TBD - validate results } public void test2Soap12AddTestDocPortEchoSenderFault() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation // TODO: Fix this... // binding.echoSenderFault(new java.lang.String()); // TBD - validate results } public void test3Soap12AddTestDocPortEchoReceiverFault() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation // TODO: Fix this... // binding.echoReceiverFault(new java.lang.String()); // TBD - validate results } public void test4Soap12AddTestRpcPortEchoVoid() throws Exception { test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestRpcPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation // TODO: Fix this... // binding.echoVoid(); // TBD - validate results } public void test5Soap12AddTestRpcPortEchoSimpleTypesAsStruct() throws Exception { test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestRpcPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation test.wsdl.soap12.additional.xsd.SOAPStruct value = null; value = binding.echoSimpleTypesAsStruct(new java.lang.String(), 0, 0); // TBD - validate results } public void test6Soap12AddTestRpcPortEchoString() throws Exception { test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestRpcPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation java.lang.String value = null; value = binding.echoString(new java.lang.String()); // TBD - validate results } public void test7Soap12AddTestRpcPortEchoSimpleTypesAsStructOfSchemaTypes() throws Exception { test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestRpcPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation test.wsdl.soap12.additional.xsd.SOAPStructTypes value = null; // TODO: Fix this... // value = binding.echoSimpleTypesAsStructOfSchemaTypes(new java.lang.String(), new java.lang.String(), new java.lang.String(), new java.lang.String()); // TBD - validate results } public void test8Soap12AddTestRpcPortEchoInteger() throws Exception { test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestRpcBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestRpcPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation int value = -3; value = binding.echoInteger(0); // TBD - validate results } // getTime is a notification style operation and is unsupported. // getTime is a notification style operation and is unsupported. public void test9Soap12AddTestDocUpperPortEchoString() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocUpperPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation java.lang.String value = null; value = binding.echoString(new java.lang.String()); // TBD - validate results } public void test10Soap12AddTestDocUpperPortEchoSenderFault() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocUpperPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation binding.echoSenderFault(new java.lang.String()); // TBD - validate results } public void test11Soap12AddTestDocUpperPortEchoReceiverFault() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocUpperPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation binding.echoReceiverFault(new java.lang.String()); // TBD - validate results } // getTime is a notification style operation and is unsupported. public void test12Soap12AddTestDocIntermediaryPortEchoString() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocIntermediaryPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation java.lang.String value = null; value = binding.echoString(new java.lang.String()); // TBD - validate results } public void test13Soap12AddTestDocIntermediaryPortEchoSenderFault() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocIntermediaryPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation binding.echoSenderFault(new java.lang.String()); // TBD - validate results } public void test14Soap12AddTestDocIntermediaryPortEchoReceiverFault() throws Exception { test.wsdl.soap12.additional.Soap12AddTestDocBindingStub binding; try { binding = (test.wsdl.soap12.additional.Soap12AddTestDocBindingStub) new test.wsdl.soap12.additional.WhiteMesaSoap12AddTestSvcLocator().getSoap12AddTestDocIntermediaryPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertNotNull("binding is null", binding); // Time out after a minute binding.setTimeout(60000); // Test operation binding.echoReceiverFault(new java.lang.String()); // TBD - validate results } }