dims 2002/11/01 05:49:06 Modified: java/src/org/apache/axis Constants.java java/src/org/apache/axis/encoding DefaultTypeMappingImpl.java Added: java/test/wsdl/interop5/basetype BaseTypesInteropTestsTestCase.java build.xml InteropTestsBindingImpl.java Round5BaseTypes.wsdl java/src/org/apache/axis/types Entities.java Entity.java IDRef.java IDRefs.java NMTokens.java Notation.java Log: Initial checkin for Bug 14162 - Round 5 BaseType WSDL needs additional schema built-in types Revision Changes Path 1.1 xml-axis/java/test/wsdl/interop5/basetype/BaseTypesInteropTestsTestCase.java Index: BaseTypesInteropTestsTestCase.java =================================================================== /** * BaseTypesInteropTestsTestCase.java * * This file was auto-generated from WSDL * by the Apache Axis WSDL2Java emitter. */ package test.wsdl.interop5.basetype; import java.net.URL; public class BaseTypesInteropTestsTestCase extends junit.framework.TestCase { public static URL url = null; public static void main(String[] args) throws Exception { if (args.length == 1) { url = new URL(args[0]); } else { url = new URL(new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPortAddress()); } junit.textui.TestRunner.run(new junit.framework.TestSuite(BaseTypesInteropTestsTestCase.class)); } // main public BaseTypesInteropTestsTestCase(java.lang.String name) { super(name); } public void test1InteropTestsPortEchoDouble() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation double value = -3; value = binding.echoDouble(0); // TBD - validate results } public void test2InteropTestsPortEchoDuration() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Duration value = null; value = binding.echoDuration(new org.apache.axis.types.Duration()); // TBD - validate results } public void test3InteropTestsPortEchoDateTime() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation java.util.Calendar value = null; value = binding.echoDateTime(java.util.Calendar.getInstance()); // TBD - validate results } public void test4InteropTestsPortEchoTime() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Time value = null; value = binding.echoTime(new org.apache.axis.types.Time("15:45:45.275Z")); // TBD - validate results } public void test5InteropTestsPortEchoGYearMonth() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.YearMonth value = null; value = binding.echoGYearMonth(new org.apache.axis.types.YearMonth(2000,1)); // TBD - validate results } public void test6InteropTestsPortEchoGYear() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Year value = null; value = binding.echoGYear(new org.apache.axis.types.Year(2000)); // TBD - validate results } public void test7InteropTestsPortEchoGMonthDay() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.MonthDay value = null; value = binding.echoGMonthDay(new org.apache.axis.types.MonthDay(1, 1)); // TBD - validate results } public void test8InteropTestsPortEchoGDay() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Day value = null; value = binding.echoGDay(new org.apache.axis.types.Day(1)); // TBD - validate results } public void test9InteropTestsPortEchoGMonth() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Month value = null; value = binding.echoGMonth(new org.apache.axis.types.Month(1)); // TBD - validate results } public void test10InteropTestsPortEchoAnyURI() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.URI value = null; value = binding.echoAnyURI(new org.apache.axis.types.URI("urn:testing")); // TBD - validate results } public void test11InteropTestsPortEchoQName() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation javax.xml.namespace.QName value = null; value = binding.echoQName(new javax.xml.namespace.QName("http://double-double", "toil-and-trouble")); // TBD - validate results } public void test12InteropTestsPortEchoNotation() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Notation value = null; value = binding.echoNotation(new org.apache.axis.types.Notation()); // TBD - validate results } public void test13InteropTestsPortEchoLanguage() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Language value = null; value = binding.echoLanguage(new org.apache.axis.types.Language()); // TBD - validate results } public void test14InteropTestsPortEchoNMToken() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.NMToken value = null; value = binding.echoNMToken(new org.apache.axis.types.NMToken()); // TBD - validate results } public void test15InteropTestsPortEchoNMTokens() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.NMTokens value = null; value = binding.echoNMTokens(new org.apache.axis.types.NMTokens()); // TBD - validate results } public void test16InteropTestsPortEchoName() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Name value = null; value = binding.echoName(new org.apache.axis.types.Name()); // TBD - validate results } public void test17InteropTestsPortEchoNCName() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.NCName value = null; value = binding.echoNCName(new org.apache.axis.types.NCName()); // TBD - validate results } public void test18InteropTestsPortEchoID() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Id value = null; value = binding.echoID(new org.apache.axis.types.Id()); // TBD - validate results } public void test19InteropTestsPortEchoIDREF() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.IDRef value = null; value = binding.echoIDREF(new org.apache.axis.types.IDRef()); // TBD - validate results } public void test20InteropTestsPortEchoIDREFS() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.IDRefs value = null; value = binding.echoIDREFS(new org.apache.axis.types.IDRefs()); // TBD - validate results } public void test21InteropTestsPortEchoEntity() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Entity value = null; value = binding.echoEntity(new org.apache.axis.types.Entity()); // TBD - validate results } public void test22InteropTestsPortEchoEntities() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.Entities value = null; value = binding.echoEntities(new org.apache.axis.types.Entities()); // TBD - validate results } public void test23InteropTestsPortEchoNonPositiveInteger() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.NonPositiveInteger value = null; value = binding.echoNonPositiveInteger(new org.apache.axis.types.NonPositiveInteger("0")); // TBD - validate results } public void test24InteropTestsPortEchoNegativeInteger() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.NegativeInteger value = null; value = binding.echoNegativeInteger(new org.apache.axis.types.NegativeInteger("-1")); // TBD - validate results } public void test25InteropTestsPortEchoLong() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation long value = -3; value = binding.echoLong(0); // TBD - validate results } public void test26InteropTestsPortEchoInt() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation int value = -3; value = binding.echoInt(0); // TBD - validate results } public void test27InteropTestsPortEchoShort() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation short value = -3; value = binding.echoShort((short)0); // TBD - validate results } public void test28InteropTestsPortEchoByte() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation byte value = -3; value = binding.echoByte((byte)0); // TBD - validate results } public void test29InteropTestsPortEchoNonNegativeInteger() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.NonNegativeInteger value = null; value = binding.echoNonNegativeInteger(new org.apache.axis.types.NonNegativeInteger("0")); // TBD - validate results } public void test30InteropTestsPortEchoUnsignedLong() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.UnsignedLong value = null; value = binding.echoUnsignedLong(new org.apache.axis.types.UnsignedLong(0)); // TBD - validate results } public void test31InteropTestsPortEchoUnsignedInt() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.UnsignedInt value = null; value = binding.echoUnsignedInt(new org.apache.axis.types.UnsignedInt(0)); // TBD - validate results } public void test32InteropTestsPortEchoUnsignedShort() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.UnsignedShort value = null; value = binding.echoUnsignedShort(new org.apache.axis.types.UnsignedShort(0)); // TBD - validate results } public void test33InteropTestsPortEchoUnsignedByte() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.UnsignedByte value = null; value = binding.echoUnsignedByte(new org.apache.axis.types.UnsignedByte(0)); // TBD - validate results } public void test34InteropTestsPortEchoPositiveInteger() throws Exception { test.wsdl.interop5.basetype.InteropTestsExpType binding; try { binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(); } catch (javax.xml.rpc.ServiceException jre) { if(jre.getLinkedCause()!=null) jre.getLinkedCause().printStackTrace(); throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); } assertTrue("binding is null", binding != null); // Test operation org.apache.axis.types.PositiveInteger value = null; value = binding.echoPositiveInteger(new org.apache.axis.types.PositiveInteger("1")); // TBD - validate results } } 1.1 xml-axis/java/test/wsdl/interop5/basetype/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] Copyright: Copyright (c) 2002-2003 Apache Software Foundation. </description> ==================================================================== --> <project name="Round5" default="compile"> <property name="axis.home" location="../../../.." /> <property name="componentName" value="test/wsdl/interop5/basetype" /> &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"> <property name="testname" value="basetype"/> <!-- generate skeletons --> <wsdl2java url="${axis.home}/test/wsdl/interop5/basetype/Round5BaseTypes.wsdl" output="${root.dir}/build/work" skeletonDeploy="no" testCase="yes" serverSide="yes"> <mapping namespace="http://soapinterop.org/" package="test.wsdl.interop5.basetype"/> <mapping namespace="http://soapinterop.org/xsd" package="test.wsdl.interop5.basetype.xsd"/> <mapping namespace="http://soapinterop.org/echoheader/" package="test.wsdl.interop5.echo"/> <mapping namespace="http://soapinterop.org" package="test.wsdl.interop5.basetype"/> <mapping namespace="http://schemas.xmlsoap.org/soap/encoding/" package="test.wsdl.interop5.basetype.soap.encoding"/> <mapping namespace="http://schemas.xmlsoap.org/wsdl/mime/" package="test.wsdl.interop5.basetype.wsdl.mime"/> <mapping namespace="http://schemas.xmlsoap.org/wsdl/http/" package="test.wsdl.interop5.basetype.wsdl.http"/> <mapping namespace="http://schemas.xmlsoap.org/wsdl/soap/" package="test.wsdl.interop5.basetype.wsdl.soap"/> <mapping namespace="services.wsdl" package="test.wsdl.interop5.basetype"/> </wsdl2java> <mkdir dir="${build.dest}"/> <copy file="BaseTypesInteropTestsTestCase.java" todir="${root.dir}/build/work/test/wsdl/interop5/basetype/" overwrite="yes"/> <copy file="InteropTestsBindingImpl.java" todir="${root.dir}/build/work/test/wsdl/interop5/basetype/" overwrite="yes"/> <!-- compile the skeletons --> <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="on"> <classpath refid="classpath" /> <include name="test/wsdl/interop5/basetype/*.java" /> <include name="test/wsdl/interop5/basetype/xsd/*.java" /> </javac> </target> <target name="run" > <antcall target="execute-Component" /> </target> </project> 1.1 xml-axis/java/test/wsdl/interop5/basetype/InteropTestsBindingImpl.java Index: InteropTestsBindingImpl.java =================================================================== /** * InteropTestsBindingImpl.java * * This file was auto-generated from WSDL * by the Apache Axis WSDL2Java emitter. */ package test.wsdl.interop5.basetype; public class InteropTestsBindingImpl implements test.wsdl.interop5.basetype.InteropTestsExpType{ public double echoDouble(double inputDouble) throws java.rmi.RemoteException { return inputDouble; } public org.apache.axis.types.Duration echoDuration(org.apache.axis.types.Duration inputDuration) throws java.rmi.RemoteException { return inputDuration; } public java.util.Calendar echoDateTime(java.util.Calendar inputDateTime) throws java.rmi.RemoteException { return inputDateTime; } public org.apache.axis.types.Time echoTime(org.apache.axis.types.Time inputTime) throws java.rmi.RemoteException { return inputTime; } public org.apache.axis.types.YearMonth echoGYearMonth(org.apache.axis.types.YearMonth inputGYearMonth) throws java.rmi.RemoteException { return inputGYearMonth; } public org.apache.axis.types.Year echoGYear(org.apache.axis.types.Year inputGYear) throws java.rmi.RemoteException { return inputGYear; } public org.apache.axis.types.MonthDay echoGMonthDay(org.apache.axis.types.MonthDay inputGMonthDay) throws java.rmi.RemoteException { return inputGMonthDay; } public org.apache.axis.types.Day echoGDay(org.apache.axis.types.Day inputGDay) throws java.rmi.RemoteException { return inputGDay; } public org.apache.axis.types.Month echoGMonth(org.apache.axis.types.Month inputGMonth) throws java.rmi.RemoteException { return inputGMonth; } public org.apache.axis.types.URI echoAnyURI(org.apache.axis.types.URI inputAnyURI) throws java.rmi.RemoteException { return inputAnyURI; } public javax.xml.namespace.QName echoQName(javax.xml.namespace.QName inputQName) throws java.rmi.RemoteException { return inputQName; } public org.apache.axis.types.Notation echoNotation(org.apache.axis.types.Notation inputNotation) throws java.rmi.RemoteException { return inputNotation; } public org.apache.axis.types.Language echoLanguage(org.apache.axis.types.Language inputLanguage) throws java.rmi.RemoteException { return inputLanguage; } public org.apache.axis.types.NMToken echoNMToken(org.apache.axis.types.NMToken inputNMToken) throws java.rmi.RemoteException { return inputNMToken; } public org.apache.axis.types.NMTokens echoNMTokens(org.apache.axis.types.NMTokens inputNMTokens) throws java.rmi.RemoteException { return inputNMTokens; } public org.apache.axis.types.Name echoName(org.apache.axis.types.Name inputName) throws java.rmi.RemoteException { return inputName; } public org.apache.axis.types.NCName echoNCName(org.apache.axis.types.NCName inputNCName) throws java.rmi.RemoteException { return inputNCName; } public org.apache.axis.types.Id echoID(org.apache.axis.types.Id inputID) throws java.rmi.RemoteException { return inputID; } public org.apache.axis.types.IDRef echoIDREF(org.apache.axis.types.IDRef inputIDREF) throws java.rmi.RemoteException { return inputIDREF; } public org.apache.axis.types.IDRefs echoIDREFS(org.apache.axis.types.IDRefs inputIDREFS) throws java.rmi.RemoteException { return inputIDREFS; } public org.apache.axis.types.Entity echoEntity(org.apache.axis.types.Entity inputEntity) throws java.rmi.RemoteException { return inputEntity; } public org.apache.axis.types.Entities echoEntities(org.apache.axis.types.Entities inputEntities) throws java.rmi.RemoteException { return inputEntities; } public org.apache.axis.types.NonPositiveInteger echoNonPositiveInteger(org.apache.axis.types.NonPositiveInteger inputNonPositiveInteger) throws java.rmi.RemoteException { return inputNonPositiveInteger; } public org.apache.axis.types.NegativeInteger echoNegativeInteger(org.apache.axis.types.NegativeInteger inputNegativeInteger) throws java.rmi.RemoteException { return inputNegativeInteger; } public long echoLong(long inputLong) throws java.rmi.RemoteException { return inputLong; } public int echoInt(int inputInt) throws java.rmi.RemoteException { return -3; } public short echoShort(short inputShort) throws java.rmi.RemoteException { return (short)-3; } public byte echoByte(byte inputByte) throws java.rmi.RemoteException { return (byte)-3; } public org.apache.axis.types.NonNegativeInteger echoNonNegativeInteger(org.apache.axis.types.NonNegativeInteger inputNonNegativeInteger) throws java.rmi.RemoteException { return inputNonNegativeInteger; } public org.apache.axis.types.UnsignedLong echoUnsignedLong(org.apache.axis.types.UnsignedLong inputUnsignedLong) throws java.rmi.RemoteException { return inputUnsignedLong; } public org.apache.axis.types.UnsignedInt echoUnsignedInt(org.apache.axis.types.UnsignedInt inputUnsignedInt) throws java.rmi.RemoteException { return inputUnsignedInt; } public org.apache.axis.types.UnsignedShort echoUnsignedShort(org.apache.axis.types.UnsignedShort inputUnsignedShort) throws java.rmi.RemoteException { return inputUnsignedShort; } public org.apache.axis.types.UnsignedByte echoUnsignedByte(org.apache.axis.types.UnsignedByte inputUnsignedByte) throws java.rmi.RemoteException { return inputUnsignedByte; } public org.apache.axis.types.PositiveInteger echoPositiveInteger(org.apache.axis.types.PositiveInteger inputPositiveInteger) throws java.rmi.RemoteException { return inputPositiveInteger; } } 1.1 xml-axis/java/test/wsdl/interop5/basetype/Round5BaseTypes.wsdl Index: Round5BaseTypes.wsdl =================================================================== <?xml version="1.0"?> <definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://soapinterop.org/xsd" xmlns:tns="services.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="services.wsdl" name="BaseTypesInteropTests"> <message name="echoDoubleRequest"> <part name="inputDouble" type="xsd:double"/> </message> <message name="echoDoubleResponse"> <part name="return" type="xsd:double"/> </message> <message name="echoDurationRequest"> <part name="inputDuration" type="xsd:duration"/> </message> <message name="echoDurationResponse"> <part name="return" type="xsd:duration"/> </message> <message name="echoDateTimeRequest"> <part name="inputDateTime" type="xsd:dateTime"/> </message> <message name="echoDateTimeResponse"> <part name="return" type="xsd:dateTime"/> </message> <message name="echoTimeRequest"> <part name="inputTime" type="xsd:time"/> </message> <message name="echoTimeResponse"> <part name="return" type="xsd:time"/> </message> <message name="echoGYearMonthRequest"> <part name="inputGYearMonth" type="xsd:gYearMonth"/> </message> <message name="echoGYearMonthResponse"> <part name="return" type="xsd:gYearMonth"/> </message> <message name="echoGYearRequest"> <part name="inputGYear" type="xsd:gYear"/> </message> <message name="echoGYearResponse"> <part name="return" type="xsd:gYear"/> </message> <message name="echoGMonthDayRequest"> <part name="inputGMonthDay" type="xsd:gMonthDay"/> </message> <message name="echoGMonthDayResponse"> <part name="return" type="xsd:gMonthDay"/> </message> <message name="echoGDayRequest"> <part name="inputGDay" type="xsd:gDay"/> </message> <message name="echoGDayResponse"> <part name="return" type="xsd:gDay"/> </message> <message name="echoGMonthRequest"> <part name="inputGMonth" type="xsd:gMonth"/> </message> <message name="echoGMonthResponse"> <part name="return" type="xsd:gMonth"/> </message> <message name="echoAnyURIRequest"> <part name="inputAnyURI" type="xsd:anyURI"/> </message> <message name="echoAnyURIResponse"> <part name="return" type="xsd:anyURI"/> </message> <message name="echoQNameRequest"> <part name="inputQName" type="xsd:QName"/> </message> <message name="echoQNameResponse"> <part name="return" type="xsd:QName"/> </message> <message name="echoNotationRequest"> <part name="inputNotation" type="xsd:NOTATION"/> </message> <message name="echoNotationResponse"> <part name="return" type="xsd:NOTATION"/> </message> <message name="echoLanguageRequest"> <part name="inputLanguage" type="xsd:language"/> </message> <message name="echoLanguageResponse"> <part name="return" type="xsd:language"/> </message> <message name="echoNMTokenRequest"> <part name="inputNMToken" type="xsd:NMTOKEN"/> </message> <message name="echoNMTokenResponse"> <part name="return" type="xsd:NMTOKEN"/> </message> <message name="echoNMTokensRequest"> <part name="inputNMTokens" type="xsd:NMTOKENS"/> </message> <message name="echoNMTokensResponse"> <part name="return" type="xsd:NMTOKENS"/> </message> <message name="echoNameRequest"> <part name="inputName" type="xsd:Name"/> </message> <message name="echoNameResponse"> <part name="return" type="xsd:Name"/> </message> <message name="echoNCNameRequest"> <part name="inputNCName" type="xsd:NCName"/> </message> <message name="echoNCNameResponse"> <part name="return" type="xsd:NCName"/> </message> <message name="echoIDRequest"> <part name="inputID" type="xsd:ID"/> </message> <message name="echoIDResponse"> <part name="return" type="xsd:ID"/> </message> <message name="echoIDREFRequest"> <part name="inputIDREF" type="xsd:IDREF"/> </message> <message name="echoIDREFResponse"> <part name="return" type="xsd:IDREF"/> </message> <message name="echoIDREFSRequest"> <part name="inputIDREFS" type="xsd:IDREFS"/> </message> <message name="echoIDREFSResponse"> <part name="return" type="xsd:IDREFS"/> </message> <message name="echoEntityRequest"> <part name="inputEntity" type="xsd:ENTITY"/> </message> <message name="echoEntityResponse"> <part name="return" type="xsd:ENTITY"/> </message> <message name="echoEntitiesRequest"> <part name="inputEntities" type="xsd:ENTITIES"/> </message> <message name="echoEntitiesResponse"> <part name="return" type="xsd:ENTITIES"/> </message> <message name="echoNonPositiveIntegerRequest"> <part name="inputNonPositiveInteger" type="xsd:nonPositiveInteger"/> </message> <message name="echoNonPositiveIntegerResponse"> <part name="return" type="xsd:nonPositiveInteger"/> </message> <message name="echoNegativeIntegerRequest"> <part name="inputNegativeInteger" type="xsd:negativeInteger"/> </message> <message name="echoNegativeIntegerResponse"> <part name="return" type="xsd:negativeInteger"/> </message> <message name="echoLongRequest"> <part name="inputLong" type="xsd:long"/> </message> <message name="echoLongResponse"> <part name="return" type="xsd:long"/> </message> <message name="echoIntRequest"> <part name="inputInt" type="xsd:int"/> </message> <message name="echoIntResponse"> <part name="return" type="xsd:int"/> </message> <message name="echoShortRequest"> <part name="inputShort" type="xsd:short"/> </message> <message name="echoShortResponse"> <part name="return" type="xsd:short"/> </message> <message name="echoByteRequest"> <part name="inputByte" type="xsd:byte"/> </message> <message name="echoByteResponse"> <part name="return" type="xsd:byte"/> </message> <message name="echoNonNegativeIntegerRequest"> <part name="inputNonNegativeInteger" type="xsd:nonNegativeInteger"/> </message> <message name="echoNonNegativeIntegerResponse"> <part name="return" type="xsd:nonNegativeInteger"/> </message> <message name="echoUnsignedLongRequest"> <part name="inputUnsignedLong" type="xsd:unsignedLong"/> </message> <message name="echoUnsignedLongResponse"> <part name="return" type="xsd:unsignedLong"/> </message> <message name="echoUnsignedIntRequest"> <part name="inputUnsignedInt" type="xsd:unsignedInt"/> </message> <message name="echoUnsignedIntResponse"> <part name="return" type="xsd:unsignedInt"/> </message> <message name="echoUnsignedShortRequest"> <part name="inputUnsignedShort" type="xsd:unsignedShort"/> </message> <message name="echoUnsignedShortResponse"> <part name="return" type="xsd:unsignedShort"/> </message> <message name="echoUnsignedByteRequest"> <part name="inputUnsignedByte" type="xsd:unsignedByte"/> </message> <message name="echoUnsignedByteResponse"> <part name="return" type="xsd:unsignedByte"/> </message> <message name="echoPositiveIntegerRequest"> <part name="inputPositiveInteger" type="xsd:positiveInteger"/> </message> <message name="echoPositiveIntegerResponse"> <part name="return" type="xsd:positiveInteger"/> </message> <portType name="InteropTestsExpType"> <operation name="echoDouble" parameterOrder="inputDouble"> <input message="tns:echoDoubleRequest"/> <output message="tns:echoDoubleResponse"/> </operation> <operation name="echoDuration" parameterOrder="inputDuration"> <input message="tns:echoDurationRequest"/> <output message="tns:echoDurationResponse"/> </operation> <operation name="echoDateTime" parameterOrder="inputDateTime"> <input message="tns:echoDateTimeRequest"/> <output message="tns:echoDateTimeResponse"/> </operation> <operation name="echoTime" parameterOrder="inputTime"> <input message="tns:echoTimeRequest"/> <output message="tns:echoTimeResponse"/> </operation> <operation name="echoGYearMonth" parameterOrder="inputGYearMonth"> <input message="tns:echoGYearMonthRequest"/> <output message="tns:echoGYearMonthResponse"/> </operation> <operation name="echoGYear" parameterOrder="inputGYear"> <input message="tns:echoGYearRequest"/> <output message="tns:echoGYearResponse"/> </operation> <operation name="echoGMonthDay" parameterOrder="inputGMonthDay"> <input message="tns:echoGMonthDayRequest"/> <output message="tns:echoGMonthDayResponse"/> </operation> <operation name="echoGDay" parameterOrder="inputGDay"> <input message="tns:echoGDayRequest"/> <output message="tns:echoGDayResponse"/> </operation> <operation name="echoGMonth" parameterOrder="inputGMonth"> <input message="tns:echoGMonthRequest"/> <output message="tns:echoGMonthResponse"/> </operation> <operation name="echoAnyURI" parameterOrder="inputAnyURI"> <input message="tns:echoAnyURIRequest"/> <output message="tns:echoAnyURIResponse"/> </operation> <operation name="echoQName" parameterOrder="inputQName"> <input message="tns:echoQNameRequest"/> <output message="tns:echoQNameResponse"/> </operation> <operation name="echoNotation" parameterOrder="inputNotation"> <input message="tns:echoNotationRequest"/> <output message="tns:echoNotationResponse"/> </operation> <operation name="echoLanguage" parameterOrder="inputLanguage"> <input message="tns:echoLanguageRequest"/> <output message="tns:echoLanguageResponse"/> </operation> <operation name="echoNMToken" parameterOrder="inputNMToken"> <input message="tns:echoNMTokenRequest"/> <output message="tns:echoNMTokenResponse"/> </operation> <operation name="echoNMTokens" parameterOrder="inputNMTokens"> <input message="tns:echoNMTokensRequest"/> <output message="tns:echoNMTokensResponse"/> </operation> <operation name="echoName" parameterOrder="inputName"> <input message="tns:echoNameRequest"/> <output message="tns:echoNameResponse"/> </operation> <operation name="echoNCName" parameterOrder="inputNCName"> <input message="tns:echoNCNameRequest"/> <output message="tns:echoNCNameResponse"/> </operation> <operation name="echoID" parameterOrder="inputID"> <input message="tns:echoIDRequest"/> <output message="tns:echoIDResponse"/> </operation> <operation name="echoIDREF" parameterOrder="inputIDREF"> <input message="tns:echoIDREFRequest"/> <output message="tns:echoIDREFResponse"/> </operation> <operation name="echoIDREFS" parameterOrder="inputIDREFS"> <input message="tns:echoIDREFSRequest"/> <output message="tns:echoIDREFSResponse"/> </operation> <operation name="echoEntity" parameterOrder="inputEntity"> <input message="tns:echoEntityRequest"/> <output message="tns:echoEntityResponse"/> </operation> <operation name="echoEntities" parameterOrder="inputEntities"> <input message="tns:echoEntitiesRequest"/> <output message="tns:echoEntitiesResponse"/> </operation> <operation name="echoNonPositiveInteger" parameterOrder="inputNonPositiveInteger"> <input message="tns:echoNonPositiveIntegerRequest"/> <output message="tns:echoNonPositiveIntegerResponse"/> </operation> <operation name="echoNegativeInteger" parameterOrder="inputNegativeInteger"> <input message="tns:echoNegativeIntegerRequest"/> <output message="tns:echoNegativeIntegerResponse"/> </operation> <operation name="echoLong" parameterOrder="inputLong"> <input message="tns:echoLongRequest"/> <output message="tns:echoLongResponse"/> </operation> <operation name="echoInt" parameterOrder="inputInt"> <input message="tns:echoIntRequest"/> <output message="tns:echoIntResponse"/> </operation> <operation name="echoShort" parameterOrder="inputShort"> <input message="tns:echoShortRequest"/> <output message="tns:echoShortResponse"/> </operation> <operation name="echoByte" parameterOrder="inputByte"> <input message="tns:echoByteRequest"/> <output message="tns:echoByteResponse"/> </operation> <operation name="echoNonNegativeInteger" parameterOrder="inputNonNegativeInteger"> <input message="tns:echoNonNegativeIntegerRequest"/> <output message="tns:echoNonNegativeIntegerResponse"/> </operation> <operation name="echoUnsignedLong" parameterOrder="inputUnsignedLong"> <input message="tns:echoUnsignedLongRequest"/> <output message="tns:echoUnsignedLongResponse"/> </operation> <operation name="echoUnsignedInt" parameterOrder="inputUnsignedInt"> <input message="tns:echoUnsignedIntRequest"/> <output message="tns:echoUnsignedIntResponse"/> </operation> <operation name="echoUnsignedShort" parameterOrder="inputUnsignedShort"> <input message="tns:echoUnsignedShortRequest"/> <output message="tns:echoUnsignedShortResponse"/> </operation> <operation name="echoUnsignedByte" parameterOrder="inputUnsignedByte"> <input message="tns:echoUnsignedByteRequest"/> <output message="tns:echoUnsignedByteResponse"/> </operation> <operation name="echoPositiveInteger" parameterOrder="inputPositiveInteger"> <input message="tns:echoPositiveIntegerRequest"/> <output message="tns:echoPositiveIntegerResponse"/> </operation> </portType> <binding name="InteropTestsBinding" type="tns:InteropTestsExpType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="echoDouble"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoDuration"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoDateTime"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoTime"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoGYearMonth"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoGYear"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoGMonthDay"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoGDay"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoGMonth"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoAnyURI"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoQName"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoNotation"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoLanguage"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoNMToken"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoNMTokens"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoName"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoNCName"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoID"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoIDREF"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoIDREFS"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoEntity"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoEntities"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoNonPositiveInteger"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoNegativeInteger"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoLong"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoInt"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoShort"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoByte"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoNonNegativeInteger"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoUnsignedLong"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoUnsignedInt"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoUnsignedShort"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoUnsignedByte"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="echoPositiveInteger"> <soap:operation soapAction="http://soapinterop.org/"/> <input> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="BaseTypesInteropTests"> <documentation>BaseTypes SOAP services</documentation> <port name="InteropTestsPort" binding="tns:InteropTestsBinding"> <!-- <soap:address location="http://ewsdemo.webMethods.com:80/soap/rpc"/> --> <soap:address location="http://localhost:8080/axis/services/InteropTestsPort" /> </port> </service> </definitions> 1.95 +6 -0 xml-axis/java/src/org/apache/axis/Constants.java Index: Constants.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Constants.java,v retrieving revision 1.94 retrieving revision 1.95 diff -u -r1.94 -r1.95 --- Constants.java 29 Oct 2002 15:52:16 -0000 1.94 +++ Constants.java 1 Nov 2002 13:49:05 -0000 1.95 @@ -495,6 +495,12 @@ public static final QName XSD_NAME = new QName(URI_2001_SCHEMA_XSD, "Name"); public static final QName XSD_NCNAME = new QName(URI_2001_SCHEMA_XSD, "NCName"); public static final QName XSD_NMTOKEN = new QName(URI_2001_SCHEMA_XSD, "NMTOKEN"); + public static final QName XSD_NMTOKENS = new QName(URI_2001_SCHEMA_XSD, "NMTOKENS"); + public static final QName XSD_NOTATION = new QName(URI_2001_SCHEMA_XSD, "NOTATION"); + public static final QName XSD_ENTITY = new QName(URI_2001_SCHEMA_XSD, "ENTITY"); + public static final QName XSD_ENTITIES = new QName(URI_2001_SCHEMA_XSD, "ENTITIES"); + public static final QName XSD_IDREF = new QName(URI_2001_SCHEMA_XSD, "IDREF"); + public static final QName XSD_IDREFS = new QName(URI_2001_SCHEMA_XSD, "IDREFS"); public static final QName XSD_ANYURI = new QName(URI_2001_SCHEMA_XSD, "anyURI"); public static final QName XSD_LANGUAGE = new QName(URI_2001_SCHEMA_XSD, "language"); public static final QName XSD_ID = new QName(URI_2001_SCHEMA_XSD, "ID"); 1.62 +50 -0 xml-axis/java/src/org/apache/axis/encoding/DefaultTypeMappingImpl.java Index: DefaultTypeMappingImpl.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/DefaultTypeMappingImpl.java,v retrieving revision 1.61 retrieving revision 1.62 diff -u -r1.61 -r1.62 --- DefaultTypeMappingImpl.java 29 Oct 2002 15:52:16 -0000 1.61 +++ DefaultTypeMappingImpl.java 1 Nov 2002 13:49:06 -0000 1.62 @@ -78,6 +78,8 @@ import org.apache.axis.encoding.ser.SimpleSerializerFactory; import org.apache.axis.encoding.ser.VectorDeserializerFactory; import org.apache.axis.encoding.ser.VectorSerializerFactory; +import org.apache.axis.encoding.ser.BeanDeserializerFactory; +import org.apache.axis.encoding.ser.BeanSerializerFactory; import org.apache.axis.utils.JavaUtils; import org.apache.axis.utils.Messages; @@ -492,6 +494,54 @@ Constants.XSD_NMTOKEN) ); + // a xsd:NmTokens + myRegister(Constants.XSD_NMTOKENS, org.apache.axis.types.NMTokens.class, + new SimpleSerializerFactory(org.apache.axis.types.NMTokens.class, + Constants.XSD_NMTOKENS), + new SimpleDeserializerFactory(org.apache.axis.types.NMTokens.class, + Constants.XSD_NMTOKENS) + ); + + // a xsd:NOTATION + myRegister(Constants.XSD_NOTATION, org.apache.axis.types.Notation.class, + new BeanSerializerFactory(org.apache.axis.types.Notation.class, + Constants.XSD_NOTATION), + new BeanDeserializerFactory(org.apache.axis.types.Notation.class, + Constants.XSD_NOTATION) + ); + + // a xsd:XSD_ENTITY + myRegister(Constants.XSD_ENTITY, org.apache.axis.types.Entity.class, + new SimpleSerializerFactory(org.apache.axis.types.Entity.class, + Constants.XSD_ENTITY), + new SimpleDeserializerFactory(org.apache.axis.types.Entity.class, + Constants.XSD_ENTITY) + ); + + // a xsd:XSD_ENTITIES + myRegister(Constants.XSD_ENTITIES, org.apache.axis.types.Entities.class, + new SimpleSerializerFactory(org.apache.axis.types.Entities.class, + Constants.XSD_ENTITIES), + new SimpleDeserializerFactory(org.apache.axis.types.Entities.class, + Constants.XSD_ENTITIES) + ); + + // a xsd:XSD_IDREF + myRegister(Constants.XSD_IDREF, org.apache.axis.types.IDRef.class, + new SimpleSerializerFactory(org.apache.axis.types.IDRef.class, + Constants.XSD_IDREF), + new SimpleDeserializerFactory(org.apache.axis.types.IDRef.class, + Constants.XSD_IDREF) + ); + + // a xsd:XSD_XSD_IDREFS + myRegister(Constants.XSD_IDREFS, org.apache.axis.types.IDRefs.class, + new SimpleSerializerFactory(org.apache.axis.types.IDRefs.class, + Constants.XSD_IDREFS), + new SimpleDeserializerFactory(org.apache.axis.types.IDRefs.class, + Constants.XSD_IDREFS) + ); + // a xsd:Duration myRegister(Constants.XSD_DURATION, org.apache.axis.types.Duration.class, new SimpleSerializerFactory(org.apache.axis.types.Duration.class, 1.1 xml-axis/java/src/org/apache/axis/types/Entities.java Index: Entities.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001 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 org.apache.axis.types; import org.apache.axis.utils.JavaUtils; import org.apache.axis.utils.Messages; import org.apache.axis.utils.XMLChar; import java.util.StringTokenizer; /** * Custom class for supporting XSD data type Entities * * @author Davanum Srinivas <[EMAIL PROTECTED]> * @see <a href="http://www.w3.org/TR/xmlschema-2/#ENTITIES">XML Schema 3.3.12 ENTITIES</a> */ public class Entities extends NCName { private Entity[] entities; public Entities() { super(); } /** * ctor for Entities * @exception IllegalArgumentException will be thrown if validation fails */ public Entities (String stValue) throws IllegalArgumentException { StringTokenizer tokenizer = new StringTokenizer(stValue); int count = tokenizer.countTokens(); entities = new Entity[count]; for(int i=0;i<count;i++){ entities[i] = new Entity(tokenizer.nextToken()); } } } 1.1 xml-axis/java/src/org/apache/axis/types/Entity.java Index: Entity.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001 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 org.apache.axis.types; import org.apache.axis.utils.JavaUtils; import org.apache.axis.utils.Messages; import org.apache.axis.utils.XMLChar; /** * Custom class for supporting XSD data type Entity * * @author Davanum Srinivas <[EMAIL PROTECTED]> * @see <a href="http://www.w3.org/TR/xmlschema-2/#ENTITY">XML Schema 3.3.11 ENTITY</a> */ public class Entity extends NCName { public Entity() { super(); } /** * ctor for Entity * @exception IllegalArgumentException will be thrown if validation fails */ public Entity (String stValue) throws IllegalArgumentException { super(stValue); } } 1.1 xml-axis/java/src/org/apache/axis/types/IDRef.java Index: IDRef.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001 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 org.apache.axis.types; import org.apache.axis.utils.JavaUtils; import org.apache.axis.utils.Messages; import org.apache.axis.utils.XMLChar; /** * Custom class for supporting XSD data type IDRef * * @author Davanum Srinivas <[EMAIL PROTECTED]> * @see <a href="http://www.w3.org/TR/xmlschema-2/#IDREF">XML Schema 3.3.10 IDREFS</a> */ public class IDRef extends NCName { public IDRef() { super(); } /** * ctor for IDRef * @exception IllegalArgumentException will be thrown if validation fails */ public IDRef (String stValue) throws IllegalArgumentException { super(stValue); } } 1.1 xml-axis/java/src/org/apache/axis/types/IDRefs.java Index: IDRefs.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001 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 org.apache.axis.types; import org.apache.axis.utils.JavaUtils; import org.apache.axis.utils.Messages; import org.apache.axis.utils.XMLChar; import java.util.StringTokenizer; /** * Custom class for supporting XSD data type IDRefs * * @author Davanum Srinivas <[EMAIL PROTECTED]> * @see <a href="http://www.w3.org/TR/xmlschema-2/#IDREFS">XML Schema 3.3.10 IDREFS</a> */ public class IDRefs extends NCName { private IDRef[] idrefs; public IDRefs() { super(); } /** * ctor for IDRefs * @exception IllegalArgumentException will be thrown if validation fails */ public IDRefs (String stValue) throws IllegalArgumentException { StringTokenizer tokenizer = new StringTokenizer(stValue); int count = tokenizer.countTokens(); idrefs = new IDRef[count]; for(int i=0;i<count;i++){ idrefs[i] = new IDRef(tokenizer.nextToken()); } } } 1.1 xml-axis/java/src/org/apache/axis/types/NMTokens.java Index: NMTokens.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001 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 org.apache.axis.types; import org.apache.axis.utils.JavaUtils; import org.apache.axis.utils.Messages; import org.apache.axis.utils.XMLChar; import java.util.StringTokenizer; /** * Custom class for supporting XSD data type NMTokens * * @author Davanum Srinivas <[EMAIL PROTECTED]> */ public class NMTokens extends NCName { private NMToken[] tokens; public NMTokens() { super(); } /** * ctor for NMTokens * @exception IllegalArgumentException will be thrown if validation fails */ public NMTokens (String stValue) throws IllegalArgumentException { StringTokenizer tokenizer = new StringTokenizer(stValue); int count = tokenizer.countTokens(); tokens = new NMToken[count]; for(int i=0;i<count;i++){ tokens[i] = new NMToken(tokenizer.nextToken()); } } } 1.1 xml-axis/java/src/org/apache/axis/types/Notation.java Index: Notation.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001 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 org.apache.axis.types; import org.apache.axis.Constants; import org.apache.axis.description.AttributeDesc; import org.apache.axis.description.ElementDesc; import org.apache.axis.description.FieldDesc; import org.apache.axis.description.TypeDesc; /** * Custom class for supporting XSD data type NOTATION. * * @author Davanum Srinivas <[EMAIL PROTECTED]> * @see <a href="http://www.w3.org/TR/xmlschema-1/#element-notation">XML Schema Part 1: 3.12 Notation Declarations</a> */ public class Notation { NCName name; URI publicURI; URI systemURI; public Notation() { } public Notation(NCName name, URI publicURI, URI systemURI) { this.name = name; this.publicURI = publicURI; this.systemURI = systemURI; } public NCName getName() { return name; } public void setName(NCName name) { this.name = name; } public URI getPublic() { return publicURI; } public void setPublic(URI publicURI) { this.publicURI = publicURI; } public URI getSystem() { return systemURI; } public void setSystem(URI systemURI) { this.systemURI = systemURI; } public boolean equals(Object obj) { if (obj == null || !(obj instanceof Notation)) return false; Notation other = (Notation) obj; if (name == null) { if (other.getName() != null) { return false; } } else if (!name.equals(other.getName())) { return false; } if (publicURI == null) { if (other.getPublic() != null) { return false; } } else if (!publicURI.equals(other.getPublic())) { return false; } if (systemURI == null) { if (other.getSystem() != null) { return false; } } else if (!systemURI.equals(other.getSystem())) { return false; } return true; } // Type metadata private static TypeDesc typeDesc; static { typeDesc = new TypeDesc(Notation.class); FieldDesc field; // An attribute with a specified QName field = new AttributeDesc(); field.setFieldName("name"); field.setXmlName(Constants.XSD_NCNAME); typeDesc.addFieldDesc(field); // An attribute with a default QName field = new AttributeDesc(); field.setFieldName("public"); field.setXmlName(Constants.XSD_ANYURI); typeDesc.addFieldDesc(field); // An element with a specified QName field = new ElementDesc(); field.setFieldName("system"); field.setXmlName(Constants.XSD_ANYURI); typeDesc.addFieldDesc(field); } public static TypeDesc getTypeDesc() { return typeDesc; } }