You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by nt...@apache.org on 2007/04/10 00:55:04 UTC

svn commit: r526943 [1/2] - in /webservices/axis2/trunk/java/modules: jaxws/ jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/ jaxws/src/org/apache/axis2/jaxws/message/databinding/ jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/ jaxws/te...

Author: nthaker
Date: Mon Apr  9 15:55:00 2007
New Revision: 526943

URL: http://svn.apache.org/viewvc?view=rev&rev=526943
Log:
JIRA = Axis2-2419
Fix for ClassCastException Incompatible with Collection

Added:
    webservices/axis2/trunk/java/modules/jaxws/test-resources/wsdl/StringList.wsdl
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/StringListTests.java
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/stringlist/
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/stringlist/META-INF/
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/stringlist/META-INF/StringList.wsdl
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/stringlist/META-INF/services.xml
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/stringlist/StringListPortTypeImpl.java
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/stringlist/sei/
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/stringlist/sei/StringListPortType.java
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/stringlist/sei/StringListService.java
Modified:
    webservices/axis2/trunk/java/modules/jaxws/maven.xml
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMethodMarshaller.java
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMinimalMethodMarshaller.java
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/XSDListUtils.java
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/JAXBBlockImpl.java
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/OperationDescription.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/ParameterDescription.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/FieldDescriptionComposite.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/MethodDescriptionComposite.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/ParameterDescriptionComposite.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ParameterDescriptionImpl.java

Modified: webservices/axis2/trunk/java/modules/jaxws/maven.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/maven.xml?view=diff&rev=526943&r1=526942&r2=526943
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/maven.xml (original)
+++ webservices/axis2/trunk/java/modules/jaxws/maven.xml Mon Apr  9 15:55:00 2007
@@ -1,868 +1,887 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
-
-<project default="jar"
-         xmlns:j="jelly:core" 
-         xmlns:u="jelly:util"
-         xmlns:maven="jelly:maven"
-         xmlns:util="jelly:util"
-         xmlns:deploy="deploy"
-         xmlns:ant="jelly:ant">
-
-    <preGoal name="itest:compile">
-        <u:file var="file" name="${maven.itest.src}"/>
-        <j:if test="${!file.exists()}">
-            <j:expr value="${context.setVariable('maven.itest.skip', 'true')}"/>
-        </j:if>
-    </preGoal>
-    
-	<!-- run the JAXB schema compiler -->
-    <preGoal name="test:compile">
-        <!--<j:if test="context.getVariable('maven.test.skip') != 'true'}">-->
-
-        <j:set var="compiled.classes.dir" value="target/test-classes"/>
-        
-    	<!-- Theres got to be a better way to do this -->
-        <j:set var="schema.source.dir" value="test-resources/xsd"/>
-    	<j:set var="wsdl.source.dir" value="test-resources/wsdl"/>
-        <j:set var="schema.output.base.dir" value="target/schema"/>
-        <j:set var="schema.generated.src.dir" value="${schema.output.base.dir}/src"/>
-        <j:set var="schema.generated.classes.dir" value="${schema.output.base.dir}/classes"/>
-        
-    	<!-- make the dirs -->
-        <mkdir dir="${schema.output.base.dir}"/>
-        <mkdir dir="${schema.generated.src.dir}"/>
-        <mkdir dir="${schema.generated.classes.dir}"/>
-
-    	<!-- Run JAXB schema compiler with designated schemas -->
-        <ant:echo>Generating JAX-B classes from XSDs</ant:echo>    
-        
-        <ant:echo>Generating java from soap 11</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-        	<jvmarg line="${maven.junit.jvmargs2}"/>
-        	<classpath refid="maven.dependency.classpath"/>
-        	<classpath location="${compiled.classes.dir}"/>
-            <arg line="-d ${schema.generated.src.dir} -quiet  ${schema.source.dir}/soap11.xsd"/>
-        </java>
-        
-    	<ant:echo>Generating java from echo.xsd</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-        	<jvmarg line="${maven.junit.jvmargs2}"/>
-        	<classpath refid="maven.dependency.classpath"/>
-        	<classpath location="${compiled.classes.dir}"/>
-            <arg line="-d ${schema.generated.src.dir} -quiet  ${schema.source.dir}/echo.xsd"/>
-        </java>
-
-    	<ant:echo>Generating java from stock1.xsd</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-        	<jvmarg line="${maven.junit.jvmargs2}"/>
-        	<classpath refid="maven.dependency.classpath"/>
-        	<classpath location="${compiled.classes.dir}"/>
-            <arg line="-d ${schema.generated.src.dir} -quiet ${schema.source.dir}/stock1.xsd"/>
-        </java>
-
-    	<ant:echo>Generating java from stock2.xsd</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-        	<jvmarg line="${maven.junit.jvmargs2}"/>
-        	<classpath refid="maven.dependency.classpath"/>
-        	<classpath location="${compiled.classes.dir}"/>
-            <arg line="-d ${schema.generated.src.dir} -quiet ${schema.source.dir}/stock2.xsd"/>
-        </java>
-
-    	<ant:echo>Generating java from samplemtom.xsd</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-        	<jvmarg line="${maven.junit.jvmargs2}"/>
-        	<classpath refid="maven.dependency.classpath"/>
-        	<classpath location="${compiled.classes.dir}"/>
-            <arg line="-d ${schema.generated.src.dir} -quiet ${schema.source.dir}/samplemtom.xsd"/>
-        </java>
-
-    	<ant:echo>Generating java from ProxyDocLitWrapped.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    		<jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -p org.test.proxy.doclitwrapped -quiet -wsdl ${wsdl.source.dir}/ProxyDocLitWrapped.wsdl"/>
-    	</java>
-
-    	<ant:echo>Generating java from ProxyDocLitnonWrapped.wsdl</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-			<jvmarg line="${maven.junit.jvmargs2}"/>
-			<classpath refid="maven.dependency.classpath"/>
-			<classpath location="${compiled.classes.dir}"/>
-			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/ProxyDocLitnonWrapped.wsdl"/>
-		</java>
-        
-    	<ant:echo>Generating java from samplemtomjpeg.wsdl</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-			<jvmarg line="${maven.junit.jvmargs2}"/>
-			<classpath refid="maven.dependency.classpath"/>
-			<classpath location="${compiled.classes.dir}"/>
-			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/samplemtomjpeg.wsdl"/>
-		</java>
-
-    	<ant:echo>Generating java from RPCLit.wsdl</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-			<jvmarg line="${maven.junit.jvmargs2}"/>
-			<classpath refid="maven.dependency.classpath"/>
-			<classpath location="${compiled.classes.dir}"/>
-			<arg line="-d ${schema.generated.src.dir} -p org.test.proxy.rpclit -quiet -wsdl ${wsdl.source.dir}/RPCLit.wsdl"/>
-		</java>
-    	
-		<ant:echo>Generating java from gorilla_dlw.wsdl</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-			<jvmarg line="${maven.junit.jvmargs2}"/>
-			<classpath refid="maven.dependency.classpath"/>
-			<classpath location="${compiled.classes.dir}"/>
-			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/gorilla_dlw.wsdl"/>
-		</java>
-
-       	<ant:echo>Generating java from SOAP12Echo.wsdl</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-   			<jvmarg line="${maven.junit.jvmargs2}"/>
-   			<classpath refid="maven.dependency.classpath"/>
-   			<classpath location="${compiled.classes.dir}"/>
-   			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/SOAP12Echo.wsdl"/>
-   		</java>
-    	
-    	<ant:echo>Generating java from AddNumbers.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	   	<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/AddNumbers.wsdl"/>
-    	</java>
-    	<ant:echo>Generating java from AddNumbersHandler.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	   	<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/AddNumbersHandler.wsdl"/>
-    	</java>
-    	<ant:echo>Generating java from async_doclitwr.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	   	<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/async_doclitwr.wsdl"/>
-    	</java>
-
-    	<ant:echo>Generating java from FaultyWebService.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/FaultyWebService.wsdl"/>
-    	</java>
-
-    	<ant:echo>Generating java from FaultsService.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/FaultsService.wsdl"/>
-    	</java> 
-
-    	<ant:echo>Generating java from jaxbsource</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -p org.test.dispatch.jaxbsource ${schema.source.dir}/jaxbsource.xsd"/>
-    	</java>
-
-    	<ant:echo>Generating java from doclit_nonwrap.wsdl for javabean endpoint support</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    		<jvmarg line="${maven.junit.jvmargs2}"/>
-    		<classpath refid="maven.dependency.classpath"/>
-    		<classpath location="${compiled.classes.dir}"/>
-    		<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/doclit_nonwrap.wsdl"/>
-		</java>
-
-    	<ant:echo>Generating java from doclitwrap.wsdl for javabean endpoint support</ant:echo>
-		<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-			<jvmarg line="${maven.junit.jvmargs2}"/>
-			<classpath refid="maven.dependency.classpath"/>
-			<classpath location="${compiled.classes.dir}"/>
-			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/doclitwrap.wsdl"/>
-		</java>
-
-    	<ant:echo>Generating java from doclitbare.wsdl for javabean endpoint support</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-            <jvmarg line="${maven.junit.jvmargs2}"/>
-            <classpath refid="maven.dependency.classpath"/>
-            <classpath location="${compiled.classes.dir}"/>
-            <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/doclitbare.wsdl"/>
-        </java>
-        
-        <ant:echo>Generating java from greeterTypes.xsd</ant:echo>
-        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-            <jvmarg line="${maven.junit.jvmargs2}"/>
-            <classpath refid="maven.dependency.classpath"/>
-            <classpath location="${compiled.classes.dir}"/>
-            <arg line="-d ${schema.generated.src.dir} -quiet ${schema.source.dir}/greeterTypes.xsd"/>
-        </java>
-
-    	<ant:echo>Generating java from EchoMessage.wsdl for javabean endpoint support</ant:echo>
-   	    <java classname="com.sun.tools.xjc.Driver" fork="true"> 
-   	        <jvmarg line="${maven.junit.jvmargs2}"/>
-   	        <classpath refid="maven.dependency.classpath"/>
-   	        <classpath location="${compiled.classes.dir}"/>
-   	        <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/EchoMessage.wsdl"/>
-	    </java>
-
-    	<ant:echo>Generating java from resourceinjection.wsdl for javabean endpoint Resource Injection support</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/resourceinjection.wsdl"/>
-    	 </java>
-    	
-    	<ant:echo>Generating java from AnyType.wsdl for javabean endpoint AnyType support</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/AnyType.wsdl"/>
-    	 </java>
-
-    	<ant:echo>Generating java from WSDLMultiTests.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/WSDLMultiTests.wsdl"/>
-    	 </java>
-    	 
-    	<ant:echo>Generating java from Polymorphic shapes.wsdl for javabean endpoint support</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/shapes.wsdl"/>
-    	</java>
-    	
-    	<ant:echo>Generating java from SOAPActionTest.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/SOAPActionTest.wsdl"/>
-    	</java>
-    	
-    	<ant:echo>Generating java from rpclitenum.wsdl</ant:echo>
-    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
-    	    <jvmarg line="${maven.junit.jvmargs2}"/>
-    	    <classpath refid="maven.dependency.classpath"/>
-    	    <classpath location="${compiled.classes.dir}"/>
-    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/rpclitenum.wsdl"/>
-    	</java>
-    	<!-- Compile the generated classes -->
-    	<ant:echo>Compiling generated schema</ant:echo>
-        <javac destdir="${schema.generated.classes.dir}" srcdir="${schema.generated.src.dir}">
-            <classpath refid="maven.dependency.classpath"></classpath>
-            <classpath location="${compiled.classes.dir}"></classpath>
-        </javac>
-
-        <ant:path id="schema.generated.classes.dir" location="${schema.generated.classes.dir}"/>
-        <maven:addPath id="maven.dependency.classpath" refid="schema.generated.classes.dir"/>
-        <!--</j:if>-->
-    </preGoal>
-    
-	<postGoal name="test:compile">
-		<ant:copy toDir="target/test-classes/services/EchoService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="server/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/server">
-				<ant:exclude name="**/*.java"/>
-			</ant:fileset>
-		</ant:copy>
-        <!-- ================================================================ -->
-        <!--- Provider endpoint Service Samples -->
-        <!-- ================================================================ -->
-		<ant:copy toDir="target/test-classes/services/BasicAuthSecurityService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/security/server/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/security/server">
-				<ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-    			<ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/StringProviderService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/provider/string/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/string">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-                <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/StringMessageProviderService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/provider/stringmsg/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/stringmsg">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-                <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/SourceProviderService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/provider/source/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/source">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-                <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/SourceMessageProviderService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/provider/sourcemsg/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/sourcemsg">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-                <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/SoapMessageProviderService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/provider/soapmsg/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/soapmsg">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-                <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/JAXBProviderService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/provider/jaxb/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/jaxb">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-                <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/schema/classes">
-                <ant:include name="org/test/mtom/**"/>
-			</ant:fileset>
-		</ant:copy>
-        
-		<ant:copy toDir="target/test-classes/services/SendImageService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/sample/mtom1/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/mtom1">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-                <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/schema/classes">
-                <ant:include name="org/apache/axis2/jaxws/sample/mtom1/**"/>
-			</ant:fileset>
-		</ant:copy>
-        
-		<ant:copy toDir="target/test-classes/services/SOAP12Service/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/dispatch/server/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/dispatch/server">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-        <!-- ================================================================ -->
-        <!--- Proxy endpoint Service Samples -->
-        <!-- ================================================================ -->
-		<ant:copy toDir="target/test-classes/services/ProxyDocLitWrapped/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/proxy/doclitwrapped/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/doclitwrapped">
-                <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-                <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/ProxyDocLitnonWrapped/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/proxy/doclitnonwrapped/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/doclitnonwrapped">
-		        <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-		        <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/RPCLit/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/proxy/rpclit/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/rpclit">
-		        <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-		        <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-        
-		<ant:copy toDir="target/test-classes/services/SOAP12EchoService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/proxy/soap12/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/soap12/server">
-		        <ant:include name="META-INF/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/BookStoreService/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/client/soapaction/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/client/soapaction/server">
-		        <ant:include name="META-INF/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/gorilla_dlw/">
-			<ant:fileset dir="target/test-classes">
-				<ant:include name="org/apache/axis2/jaxws/proxy/gorilla_dlw/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/gorilla_dlw">
-		        <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-		        <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<!-- ================================================================ -->
-        <!--- XML HTTP Tests -->
-        <!-- ================================================================ -->
-        <ant:copy toDir="target/test-classes/services/XPayloadStringProvider/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/payload/string/*.class"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/payload/string">
-		    <ant:include name="META-INF/**"/>
-		  </ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/XMessageStringProvider/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/message/string/*.class"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/message/string">
-		    <ant:include name="META-INF/**"/>
-		  </ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/XPayloadSourceProvider/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/payload/source/*.class"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/payload/source">
-		    <ant:include name="META-INF/**"/>
-		  </ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/XMessageSourceProvider/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/message/source/*.class"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/message/source">
-		    <ant:include name="META-INF/**"/>
-		  </ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/XMessageDataSourceProvider/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/message/datasource/*.class"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/message/datasource">
-		    <ant:include name="META-INF/**"/>
-		  </ant:fileset>
-		</ant:copy>
-		
-		<!-- ================================================================ -->
-        <!--- Java Bean Endpoint Samples -->
-        <!-- ================================================================ -->
-		<ant:copy toDir="target/test-classes/services/WSGenService/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.class"/>
-		    <ant:include name="org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.class"/>
-		    <ant:include name="org/apache/axis2/jaxws/sample/wsgen/jaxws/**"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/sample/wsgen">
-		    <ant:include name="META-INF/**"/>
-		  </ant:fileset>
-		</ant:copy>
-
-		<ant:copy toDir="target/test-classes/services/AddressBookService/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/sample/addressbook/**"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/sample/addressbook">
-		    <ant:include name="META-INF/**"/>
-		  </ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/MtomSampleService/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/sample/mtom/**"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/sample/mtom">
-			<ant:include name="META-INF/**"/>
-          </ant:fileset>
-        </ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/DocLitNonWrapService/">
-		  <ant:fileset dir="target/test-classes">
-		    <ant:include name="org/apache/axis2/jaxws/sample/nonwrap/**"/>
-		  </ant:fileset>
-		  <ant:fileset dir="test/org/apache/axis2/jaxws/sample/nonwrap">
-		    <ant:include name="META-INF/**"/>
-		  </ant:fileset>
-		  <ant:fileset dir="target/classes">
-			 <ant:include name="org/apache/axis2/jaxws/server/**"/>
-		  </ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/DocLitWrapService/">
-			<ant:fileset dir="target/test-classes">
-			   	<ant:include name="org/apache/axis2/jaxws/sample/wrap/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/wrap">
-			  	<ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-				<ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/AddNumbersService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/sample/addnumbers/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/addnumbers">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/AddNumbersHandlerService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/sample/addnumbershandler/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/addnumbershandler">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-
-		<ant:copy toDir="target/test-classes/services/GreeterService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/sample/dlwmin/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/dlwmin">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/AsyncService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/sample/parallelasync/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/parallelasync/server">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/FaultyWebServiceService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/sample/faults/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/faults">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/FaultsService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/sample/faultsservice/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/faultsservice">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/BareDocLitService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/sample/doclitbare/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/doclitbare">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/EchoMessageService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/nonanonymous/complextype/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/nonanonymous/complextype">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/ResourceInjectionService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/resourceinjection/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/resourceinjection">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		<ant:copy toDir="target/test-classes/services/AnyTypeMessageService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/anytype/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/anytype">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>
-		
-		<ant:copy toDir="target/test-classes/services/PolymorphicShapeService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/polymorphic/shape/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/polymorphic/shape">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>	
-		
-		<ant:copy toDir="target/test-classes/services/RPCLitEnumService/">
-			<ant:fileset dir="target/test-classes">
-			   <ant:include name="org/apache/axis2/jaxws/rpclit/enumtype/**"/>
-			</ant:fileset>
-			<ant:fileset dir="test/org/apache/axis2/jaxws/rpclit/enumtype">
-			   <ant:include name="META-INF/**"/>
-			</ant:fileset>
-			<ant:fileset dir="target/classes">
-			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
-			</ant:fileset>
-		</ant:copy>	
-
-		
-
-	</postGoal>
-
-    <!-- Create the API and Impl jars --> 
-    <postGoal name="jar">
-        <jar destfile="target/jaxws-api-${jaxws.version}.jar">
-            <ant:fileset dir="target/classes">
-            	<ant:exclude name="com/ibm/webservices/**"/>
-            	<ant:exclude name="META-INF/services/**"/>
-            </ant:fileset>
-        </jar>
-    	<jar destfile="target/jaxws-impl-${jaxws.version}.jar">
-    	    <ant:fileset dir="target/classes">
-                <ant:exclude name="javax/**"/>
-            </ant:fileset>
-    	</jar>
-        <ant:copy toDir="${maven.repo.local}/jaxws/jars">
-            <ant:fileset file="target/jaxws-impl-${jaxws.version}.jar"/>
-        	<ant:fileset file="target/jaxws-api-${jaxws.version}.jar"/>
-        </ant:copy>
-    </postGoal>
-
-    <goal name="jar">
-        <attainGoal name="jar:install"/>
-    </goal>
-
-    <goal name="release" prereqs="dist-bin,dist-src">
-    </goal>
-
-    <goal name="dist-bin" prereqs="jar">
-
-        <ant:echo>+----------------------------------------------</ant:echo>
-        <ant:echo>| Creating: JAXWS Binary Distribution</ant:echo>
-        <ant:echo>+----------------------------------------------</ant:echo>
-
-
-        <property name="dist" value="target/dist/temp"/>
-
-        <mkdir dir="${dist}"/>
-        <mkdir dir="${dist}/apidocs"/>
-        <mkdir dir="${dist}/build"/>
-        <!--<mkdir dir="${dist}/docs"/>-->
-        <mkdir dir="${dist}/lib"/>
-
-        <!--copy dependent jars-->
-        <maven:reactor basedir="${basedir}"
-                       postProcessing="true"
-                       includes="project.xml"
-                       banner="Executing (${goals}):"
-                       ignoreFailures="false"/>
-        <j:forEach var="x" items="${reactorProjects}">
-            <ant:echo message="Copying ${x} to ${dist}"/>
-            <deploy:copy-deps todir="${dist}/lib"
-                              projectDescriptor="${x.getFile()}"/>
-        </j:forEach>
-        <ant:delete file="${dist}/lib/xmlunit-${xmlunit.version}.jar"/>
-
-        <!--Add the licenses of jars-->
-        <ant:copy toDir="${dist}/lib">
-            <ant:fileset dir="legal"/>
-        </ant:copy>
-
-        <!--add api docs-->
-
-        <ant:javadoc packagenames="org.apache.jaxws.*"
-                     defaultexcludes="yes"
-                     destdir="${dist}/apidocs"
-                     author="true"
-                     breakiterator="true"
-                     version="true"
-                     use="true"
-                     windowtitle="JAXWS API">
-            <ant:arg
-                    line="-J-Dhttp.proxy.port=${maven.proxy.port} -J-Dhttp.proxy.host=${maven.proxy.host}"/>
-            <ant:sourcepath>
-                <ant:pathelement location="src"/>
-            </ant:sourcepath>
-            <ant:classpath>
-                <ant:fileset dir="${dist}/lib">
-                    <ant:include name="*.jar"/>
-                </ant:fileset>
-            </ant:classpath>
-        </ant:javadoc>
-
-        <!--add jars-->
-        <ant:copy toDir="${dist}/build">
-            <ant:fileset file="target/jaxws-api-${jaxws.version}.jar"/>
-            <ant:fileset file="target/jaxws-impl-${jaxws.version}.jar"/>
-        </ant:copy>
-
-        <!--add documents-->
-        <ant:copy toDir="${dist}/docs">
-            <ant:fileset dir="xdocs">
-                <ant:exclude name="**/.svn/**"/>
-            </ant:fileset>
-        </ant:copy>
-
-        <!--copy release notes, etc-->
-        <ant:copy toDir="${dist}">
-            <ant:fileset file="RELEASE-NOTE.txt"/>
-            <ant:fileset file="README.txt"/>
-            <ant:fileset file="NOTICE.txt"/>
-            <ant:fileset file="LICENSE.txt"/>
-        </ant:copy>
-
-
-        <!--create the zip-->
-        <ant:zip file="target/dist/jaxws-${jaxws.version}-bin.zip">
-            <ant:fileset dir="${dist}/"/>
-        </ant:zip>
-
-        <ant:delete dir="${dist}"/>
-
-    </goal>
-
-    <goal name="dist-src" prereqs="jar">
-
-        <ant:echo>+----------------------------------------------</ant:echo>
-        <ant:echo>| Creating: JAXWS Source Distribution</ant:echo>
-        <ant:echo>+----------------------------------------------</ant:echo>
-
-        <ant:property name="${dist}" value="target/dist/temp"/>
-
-        <ant:copy toDir="${dist}">
-            <ant:fileset dir=".">
-                <ant:exclude name="**/.svn/**"/>
-                <ant:include name="**/src/**"/>
-                <ant:include name="**/test/**"/>
-            </ant:fileset>
-        </ant:copy>
-
-        <!-- Copy the master maven files for the standard src distro -->
-        <ant:copy toDir="${dist}">
-            <ant:fileset file="maven.xml"/>
-            <ant:fileset file="project.xml"/>
-            <ant:fileset file="project.properties"/>
-            <ant:fileset file="RELEASE-NOTE.txt"/>
-            <ant:fileset file="NOTICE.txt"/>
-            <ant:fileset file="LICENSE.txt"/>
-        </ant:copy>
-
-        <ant:zip file="target/dist/jaxws-${jaxws.version}-src.zip">
-            <ant:fileset dir="${dist}/"/>
-        </ant:zip>
-        <ant:delete dir="${dist}"/>
-    </goal>
-
-    <goal name="javadocs">
-
-        <mkdir dir="target/apidocs"/>
-
-        <ant:javadoc packagenames="org.apache.jaxws.*"
-                     defaultexcludes="yes"
-                     destdir="target/apidocs"
-                     author="true"
-                     breakiterator="true"
-                     version="true"
-                     use="true"
-                     windowtitle="JAXWS API">
-            <ant:arg
-                    line="-J-Dhttp.proxy.port=${maven.proxy.port} -J-Dhttp.proxy.host=${maven.proxy.host}"/>
-            <ant:sourcepath>
-                <ant:pathelement location="src"/>
-            </ant:sourcepath>
-        </ant:javadoc>
-    </goal>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
+
+<project default="jar"
+         xmlns:j="jelly:core" 
+         xmlns:u="jelly:util"
+         xmlns:maven="jelly:maven"
+         xmlns:util="jelly:util"
+         xmlns:deploy="deploy"
+         xmlns:ant="jelly:ant">
+
+    <preGoal name="itest:compile">
+        <u:file var="file" name="${maven.itest.src}"/>
+        <j:if test="${!file.exists()}">
+            <j:expr value="${context.setVariable('maven.itest.skip', 'true')}"/>
+        </j:if>
+    </preGoal>
+    
+	<!-- run the JAXB schema compiler -->
+    <preGoal name="test:compile">
+        <!--<j:if test="context.getVariable('maven.test.skip') != 'true'}">-->
+
+        <j:set var="compiled.classes.dir" value="target/test-classes"/>
+        
+    	<!-- Theres got to be a better way to do this -->
+        <j:set var="schema.source.dir" value="test-resources/xsd"/>
+    	<j:set var="wsdl.source.dir" value="test-resources/wsdl"/>
+        <j:set var="schema.output.base.dir" value="target/schema"/>
+        <j:set var="schema.generated.src.dir" value="${schema.output.base.dir}/src"/>
+        <j:set var="schema.generated.classes.dir" value="${schema.output.base.dir}/classes"/>
+        
+    	<!-- make the dirs -->
+        <mkdir dir="${schema.output.base.dir}"/>
+        <mkdir dir="${schema.generated.src.dir}"/>
+        <mkdir dir="${schema.generated.classes.dir}"/>
+
+    	<!-- Run JAXB schema compiler with designated schemas -->
+        <ant:echo>Generating JAX-B classes from XSDs</ant:echo>    
+        
+        <ant:echo>Generating java from soap 11</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+        	<jvmarg line="${maven.junit.jvmargs2}"/>
+        	<classpath refid="maven.dependency.classpath"/>
+        	<classpath location="${compiled.classes.dir}"/>
+            <arg line="-d ${schema.generated.src.dir} -quiet  ${schema.source.dir}/soap11.xsd"/>
+        </java>
+        
+    	<ant:echo>Generating java from echo.xsd</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+        	<jvmarg line="${maven.junit.jvmargs2}"/>
+        	<classpath refid="maven.dependency.classpath"/>
+        	<classpath location="${compiled.classes.dir}"/>
+            <arg line="-d ${schema.generated.src.dir} -quiet  ${schema.source.dir}/echo.xsd"/>
+        </java>
+
+    	<ant:echo>Generating java from stock1.xsd</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+        	<jvmarg line="${maven.junit.jvmargs2}"/>
+        	<classpath refid="maven.dependency.classpath"/>
+        	<classpath location="${compiled.classes.dir}"/>
+            <arg line="-d ${schema.generated.src.dir} -quiet ${schema.source.dir}/stock1.xsd"/>
+        </java>
+
+    	<ant:echo>Generating java from stock2.xsd</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+        	<jvmarg line="${maven.junit.jvmargs2}"/>
+        	<classpath refid="maven.dependency.classpath"/>
+        	<classpath location="${compiled.classes.dir}"/>
+            <arg line="-d ${schema.generated.src.dir} -quiet ${schema.source.dir}/stock2.xsd"/>
+        </java>
+
+    	<ant:echo>Generating java from samplemtom.xsd</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+        	<jvmarg line="${maven.junit.jvmargs2}"/>
+        	<classpath refid="maven.dependency.classpath"/>
+        	<classpath location="${compiled.classes.dir}"/>
+            <arg line="-d ${schema.generated.src.dir} -quiet ${schema.source.dir}/samplemtom.xsd"/>
+        </java>
+
+    	<ant:echo>Generating java from ProxyDocLitWrapped.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    		<jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -p org.test.proxy.doclitwrapped -quiet -wsdl ${wsdl.source.dir}/ProxyDocLitWrapped.wsdl"/>
+    	</java>
+
+    	<ant:echo>Generating java from ProxyDocLitnonWrapped.wsdl</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+			<jvmarg line="${maven.junit.jvmargs2}"/>
+			<classpath refid="maven.dependency.classpath"/>
+			<classpath location="${compiled.classes.dir}"/>
+			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/ProxyDocLitnonWrapped.wsdl"/>
+		</java>
+        
+    	<ant:echo>Generating java from samplemtomjpeg.wsdl</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+			<jvmarg line="${maven.junit.jvmargs2}"/>
+			<classpath refid="maven.dependency.classpath"/>
+			<classpath location="${compiled.classes.dir}"/>
+			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/samplemtomjpeg.wsdl"/>
+		</java>
+
+    	<ant:echo>Generating java from RPCLit.wsdl</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+			<jvmarg line="${maven.junit.jvmargs2}"/>
+			<classpath refid="maven.dependency.classpath"/>
+			<classpath location="${compiled.classes.dir}"/>
+			<arg line="-d ${schema.generated.src.dir} -p org.test.proxy.rpclit -quiet -wsdl ${wsdl.source.dir}/RPCLit.wsdl"/>
+		</java>
+    	
+		<ant:echo>Generating java from gorilla_dlw.wsdl</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+			<jvmarg line="${maven.junit.jvmargs2}"/>
+			<classpath refid="maven.dependency.classpath"/>
+			<classpath location="${compiled.classes.dir}"/>
+			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/gorilla_dlw.wsdl"/>
+		</java>
+
+       	<ant:echo>Generating java from SOAP12Echo.wsdl</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+   			<jvmarg line="${maven.junit.jvmargs2}"/>
+   			<classpath refid="maven.dependency.classpath"/>
+   			<classpath location="${compiled.classes.dir}"/>
+   			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/SOAP12Echo.wsdl"/>
+   		</java>
+    	
+    	<ant:echo>Generating java from AddNumbers.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	   	<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/AddNumbers.wsdl"/>
+    	</java>
+    	<ant:echo>Generating java from AddNumbersHandler.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	   	<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/AddNumbersHandler.wsdl"/>
+    	</java>
+    	<ant:echo>Generating java from async_doclitwr.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	   	<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/async_doclitwr.wsdl"/>
+    	</java>
+
+    	<ant:echo>Generating java from FaultyWebService.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/FaultyWebService.wsdl"/>
+    	</java>
+
+    	<ant:echo>Generating java from FaultsService.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/FaultsService.wsdl"/>
+    	</java> 
+
+    	<ant:echo>Generating java from jaxbsource</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -p org.test.dispatch.jaxbsource ${schema.source.dir}/jaxbsource.xsd"/>
+    	</java>
+
+    	<ant:echo>Generating java from doclit_nonwrap.wsdl for javabean endpoint support</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    		<jvmarg line="${maven.junit.jvmargs2}"/>
+    		<classpath refid="maven.dependency.classpath"/>
+    		<classpath location="${compiled.classes.dir}"/>
+    		<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/doclit_nonwrap.wsdl"/>
+		</java>
+
+    	<ant:echo>Generating java from doclitwrap.wsdl for javabean endpoint support</ant:echo>
+		<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+			<jvmarg line="${maven.junit.jvmargs2}"/>
+			<classpath refid="maven.dependency.classpath"/>
+			<classpath location="${compiled.classes.dir}"/>
+			<arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/doclitwrap.wsdl"/>
+		</java>
+
+    	<ant:echo>Generating java from doclitbare.wsdl for javabean endpoint support</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+            <jvmarg line="${maven.junit.jvmargs2}"/>
+            <classpath refid="maven.dependency.classpath"/>
+            <classpath location="${compiled.classes.dir}"/>
+            <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/doclitbare.wsdl"/>
+        </java>
+        
+        <ant:echo>Generating java from greeterTypes.xsd</ant:echo>
+        <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+            <jvmarg line="${maven.junit.jvmargs2}"/>
+            <classpath refid="maven.dependency.classpath"/>
+            <classpath location="${compiled.classes.dir}"/>
+            <arg line="-d ${schema.generated.src.dir} -quiet ${schema.source.dir}/greeterTypes.xsd"/>
+        </java>
+
+    	<ant:echo>Generating java from EchoMessage.wsdl for javabean endpoint support</ant:echo>
+   	    <java classname="com.sun.tools.xjc.Driver" fork="true"> 
+   	        <jvmarg line="${maven.junit.jvmargs2}"/>
+   	        <classpath refid="maven.dependency.classpath"/>
+   	        <classpath location="${compiled.classes.dir}"/>
+   	        <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/EchoMessage.wsdl"/>
+	    </java>
+
+    	<ant:echo>Generating java from resourceinjection.wsdl for javabean endpoint Resource Injection support</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/resourceinjection.wsdl"/>
+    	 </java>
+    	
+    	<ant:echo>Generating java from AnyType.wsdl for javabean endpoint AnyType support</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/AnyType.wsdl"/>
+    	 </java>
+
+    	<ant:echo>Generating java from WSDLMultiTests.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/WSDLMultiTests.wsdl"/>
+    	 </java>
+    	 
+    	<ant:echo>Generating java from Polymorphic shapes.wsdl for javabean endpoint support</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/shapes.wsdl"/>
+    	</java>
+    	
+    	<ant:echo>Generating java from SOAPActionTest.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/SOAPActionTest.wsdl"/>
+    	</java>
+    	
+    	<ant:echo>Generating java from rpclitenum.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/rpclitenum.wsdl"/>
+    	</java>
+    	
+    	<ant:echo>Generating java from StringList.wsdl</ant:echo>
+    	<java classname="com.sun.tools.xjc.Driver" fork="true"> 
+    	    <jvmarg line="${maven.junit.jvmargs2}"/>
+    	    <classpath refid="maven.dependency.classpath"/>
+    	    <classpath location="${compiled.classes.dir}"/>
+    	    <arg line="-d ${schema.generated.src.dir} -quiet -wsdl ${wsdl.source.dir}/StringList.wsdl"/>
+    	</java>
+    	
+    	<!-- Compile the generated classes -->
+    	<ant:echo>Compiling generated schema</ant:echo>
+        <javac destdir="${schema.generated.classes.dir}" srcdir="${schema.generated.src.dir}">
+            <classpath refid="maven.dependency.classpath"></classpath>
+            <classpath location="${compiled.classes.dir}"></classpath>
+        </javac>
+
+        <ant:path id="schema.generated.classes.dir" location="${schema.generated.classes.dir}"/>
+        <maven:addPath id="maven.dependency.classpath" refid="schema.generated.classes.dir"/>
+        <!--</j:if>-->
+    </preGoal>
+    
+	<postGoal name="test:compile">
+		<ant:copy toDir="target/test-classes/services/EchoService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="server/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/server">
+				<ant:exclude name="**/*.java"/>
+			</ant:fileset>
+		</ant:copy>
+        <!-- ================================================================ -->
+        <!--- Provider endpoint Service Samples -->
+        <!-- ================================================================ -->
+		<ant:copy toDir="target/test-classes/services/BasicAuthSecurityService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/security/server/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/security/server">
+				<ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+    			<ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/StringProviderService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/provider/string/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/string">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+                <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/StringMessageProviderService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/provider/stringmsg/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/stringmsg">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+                <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/SourceProviderService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/provider/source/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/source">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+                <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/SourceMessageProviderService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/provider/sourcemsg/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/sourcemsg">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+                <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/SoapMessageProviderService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/provider/soapmsg/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/soapmsg">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+                <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/JAXBProviderService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/provider/jaxb/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/provider/jaxb">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+                <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/schema/classes">
+                <ant:include name="org/test/mtom/**"/>
+			</ant:fileset>
+		</ant:copy>
+        
+		<ant:copy toDir="target/test-classes/services/SendImageService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/sample/mtom1/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/mtom1">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+                <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/schema/classes">
+                <ant:include name="org/apache/axis2/jaxws/sample/mtom1/**"/>
+			</ant:fileset>
+		</ant:copy>
+        
+		<ant:copy toDir="target/test-classes/services/SOAP12Service/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/dispatch/server/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/dispatch/server">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+        <!-- ================================================================ -->
+        <!--- Proxy endpoint Service Samples -->
+        <!-- ================================================================ -->
+		<ant:copy toDir="target/test-classes/services/ProxyDocLitWrapped/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/proxy/doclitwrapped/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/doclitwrapped">
+                <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+                <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/ProxyDocLitnonWrapped/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/proxy/doclitnonwrapped/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/doclitnonwrapped">
+		        <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+		        <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/RPCLit/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/proxy/rpclit/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/rpclit">
+		        <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+		        <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+        
+		<ant:copy toDir="target/test-classes/services/SOAP12EchoService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/proxy/soap12/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/soap12/server">
+		        <ant:include name="META-INF/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/BookStoreService/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/client/soapaction/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/client/soapaction/server">
+		        <ant:include name="META-INF/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/gorilla_dlw/">
+			<ant:fileset dir="target/test-classes">
+				<ant:include name="org/apache/axis2/jaxws/proxy/gorilla_dlw/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/proxy/gorilla_dlw">
+		        <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+		        <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<!-- ================================================================ -->
+        <!--- XML HTTP Tests -->
+        <!-- ================================================================ -->
+        <ant:copy toDir="target/test-classes/services/XPayloadStringProvider/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/payload/string/*.class"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/payload/string">
+		    <ant:include name="META-INF/**"/>
+		  </ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/XMessageStringProvider/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/message/string/*.class"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/message/string">
+		    <ant:include name="META-INF/**"/>
+		  </ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/XPayloadSourceProvider/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/payload/source/*.class"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/payload/source">
+		    <ant:include name="META-INF/**"/>
+		  </ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/XMessageSourceProvider/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/message/source/*.class"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/message/source">
+		    <ant:include name="META-INF/**"/>
+		  </ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/XMessageDataSourceProvider/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/xmlhttp/provider/message/datasource/*.class"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/xmlhttp/provider/message/datasource">
+		    <ant:include name="META-INF/**"/>
+		  </ant:fileset>
+		</ant:copy>
+		
+		<!-- ================================================================ -->
+        <!--- Java Bean Endpoint Samples -->
+        <!-- ================================================================ -->
+		<ant:copy toDir="target/test-classes/services/WSGenService/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.class"/>
+		    <ant:include name="org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.class"/>
+		    <ant:include name="org/apache/axis2/jaxws/sample/wsgen/jaxws/**"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/sample/wsgen">
+		    <ant:include name="META-INF/**"/>
+		  </ant:fileset>
+		</ant:copy>
+
+		<ant:copy toDir="target/test-classes/services/AddressBookService/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/sample/addressbook/**"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/sample/addressbook">
+		    <ant:include name="META-INF/**"/>
+		  </ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/MtomSampleService/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/sample/mtom/**"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/sample/mtom">
+			<ant:include name="META-INF/**"/>
+          </ant:fileset>
+        </ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/DocLitNonWrapService/">
+		  <ant:fileset dir="target/test-classes">
+		    <ant:include name="org/apache/axis2/jaxws/sample/nonwrap/**"/>
+		  </ant:fileset>
+		  <ant:fileset dir="test/org/apache/axis2/jaxws/sample/nonwrap">
+		    <ant:include name="META-INF/**"/>
+		  </ant:fileset>
+		  <ant:fileset dir="target/classes">
+			 <ant:include name="org/apache/axis2/jaxws/server/**"/>
+		  </ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/DocLitWrapService/">
+			<ant:fileset dir="target/test-classes">
+			   	<ant:include name="org/apache/axis2/jaxws/sample/wrap/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/wrap">
+			  	<ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+				<ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/AddNumbersService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/sample/addnumbers/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/addnumbers">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/AddNumbersHandlerService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/sample/addnumbershandler/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/addnumbershandler">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+
+		<ant:copy toDir="target/test-classes/services/GreeterService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/sample/dlwmin/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/dlwmin">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/AsyncService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/sample/parallelasync/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/parallelasync/server">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/FaultyWebServiceService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/sample/faults/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/faults">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/FaultsService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/sample/faultsservice/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/faultsservice">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/BareDocLitService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/sample/doclitbare/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/sample/doclitbare">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/EchoMessageService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/nonanonymous/complextype/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/nonanonymous/complextype">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/ResourceInjectionService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/resourceinjection/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/resourceinjection">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<ant:copy toDir="target/test-classes/services/AnyTypeMessageService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/anytype/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/anytype">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>
+		
+		<ant:copy toDir="target/test-classes/services/PolymorphicShapeService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/polymorphic/shape/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/polymorphic/shape">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>	
+		
+		<ant:copy toDir="target/test-classes/services/RPCLitEnumService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/rpclit/enumtype/**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/rpclit/enumtype">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>	
+		<ant:copy toDir="target/test-classes/services/StringListService/">
+			<ant:fileset dir="target/test-classes">
+			   <ant:include name="org/apache/axis2/jaxws/stringlist//**"/>
+			</ant:fileset>
+			<ant:fileset dir="test/org/apache/axis2/jaxws/stringlist">
+			   <ant:include name="META-INF/**"/>
+			</ant:fileset>
+			<ant:fileset dir="target/classes">
+			   <ant:include name="org/apache/axis2/jaxws/server/**"/>
+			</ant:fileset>
+		</ant:copy>	
+		
+
+	</postGoal>
+
+    <!-- Create the API and Impl jars --> 
+    <postGoal name="jar">
+        <jar destfile="target/jaxws-api-${jaxws.version}.jar">
+            <ant:fileset dir="target/classes">
+            	<ant:exclude name="com/ibm/webservices/**"/>
+            	<ant:exclude name="META-INF/services/**"/>
+            </ant:fileset>
+        </jar>
+    	<jar destfile="target/jaxws-impl-${jaxws.version}.jar">
+    	    <ant:fileset dir="target/classes">
+                <ant:exclude name="javax/**"/>
+            </ant:fileset>
+    	</jar>
+        <ant:copy toDir="${maven.repo.local}/jaxws/jars">
+            <ant:fileset file="target/jaxws-impl-${jaxws.version}.jar"/>
+        	<ant:fileset file="target/jaxws-api-${jaxws.version}.jar"/>
+        </ant:copy>
+    </postGoal>
+
+    <goal name="jar">
+        <attainGoal name="jar:install"/>
+    </goal>
+
+    <goal name="release" prereqs="dist-bin,dist-src">
+    </goal>
+
+    <goal name="dist-bin" prereqs="jar">
+
+        <ant:echo>+----------------------------------------------</ant:echo>
+        <ant:echo>| Creating: JAXWS Binary Distribution</ant:echo>
+        <ant:echo>+----------------------------------------------</ant:echo>
+
+
+        <property name="dist" value="target/dist/temp"/>
+
+        <mkdir dir="${dist}"/>
+        <mkdir dir="${dist}/apidocs"/>
+        <mkdir dir="${dist}/build"/>
+        <!--<mkdir dir="${dist}/docs"/>-->
+        <mkdir dir="${dist}/lib"/>
+
+        <!--copy dependent jars-->
+        <maven:reactor basedir="${basedir}"
+                       postProcessing="true"
+                       includes="project.xml"
+                       banner="Executing (${goals}):"
+                       ignoreFailures="false"/>
+        <j:forEach var="x" items="${reactorProjects}">
+            <ant:echo message="Copying ${x} to ${dist}"/>
+            <deploy:copy-deps todir="${dist}/lib"
+                              projectDescriptor="${x.getFile()}"/>
+        </j:forEach>
+        <ant:delete file="${dist}/lib/xmlunit-${xmlunit.version}.jar"/>
+
+        <!--Add the licenses of jars-->
+        <ant:copy toDir="${dist}/lib">
+            <ant:fileset dir="legal"/>
+        </ant:copy>
+
+        <!--add api docs-->
+
+        <ant:javadoc packagenames="org.apache.jaxws.*"
+                     defaultexcludes="yes"
+                     destdir="${dist}/apidocs"
+                     author="true"
+                     breakiterator="true"
+                     version="true"
+                     use="true"
+                     windowtitle="JAXWS API">
+            <ant:arg
+                    line="-J-Dhttp.proxy.port=${maven.proxy.port} -J-Dhttp.proxy.host=${maven.proxy.host}"/>
+            <ant:sourcepath>
+                <ant:pathelement location="src"/>
+            </ant:sourcepath>
+            <ant:classpath>
+                <ant:fileset dir="${dist}/lib">
+                    <ant:include name="*.jar"/>
+                </ant:fileset>
+            </ant:classpath>
+        </ant:javadoc>
+
+        <!--add jars-->
+        <ant:copy toDir="${dist}/build">
+            <ant:fileset file="target/jaxws-api-${jaxws.version}.jar"/>
+            <ant:fileset file="target/jaxws-impl-${jaxws.version}.jar"/>
+        </ant:copy>
+
+        <!--add documents-->
+        <ant:copy toDir="${dist}/docs">
+            <ant:fileset dir="xdocs">
+                <ant:exclude name="**/.svn/**"/>
+            </ant:fileset>
+        </ant:copy>
+
+        <!--copy release notes, etc-->
+        <ant:copy toDir="${dist}">
+            <ant:fileset file="RELEASE-NOTE.txt"/>
+            <ant:fileset file="README.txt"/>
+            <ant:fileset file="NOTICE.txt"/>
+            <ant:fileset file="LICENSE.txt"/>
+        </ant:copy>
+
+
+        <!--create the zip-->
+        <ant:zip file="target/dist/jaxws-${jaxws.version}-bin.zip">
+            <ant:fileset dir="${dist}/"/>
+        </ant:zip>
+
+        <ant:delete dir="${dist}"/>
+
+    </goal>
+
+    <goal name="dist-src" prereqs="jar">
+
+        <ant:echo>+----------------------------------------------</ant:echo>
+        <ant:echo>| Creating: JAXWS Source Distribution</ant:echo>
+        <ant:echo>+----------------------------------------------</ant:echo>
+
+        <ant:property name="${dist}" value="target/dist/temp"/>
+
+        <ant:copy toDir="${dist}">
+            <ant:fileset dir=".">
+                <ant:exclude name="**/.svn/**"/>
+                <ant:include name="**/src/**"/>
+                <ant:include name="**/test/**"/>
+            </ant:fileset>
+        </ant:copy>
+
+        <!-- Copy the master maven files for the standard src distro -->
+        <ant:copy toDir="${dist}">
+            <ant:fileset file="maven.xml"/>
+            <ant:fileset file="project.xml"/>
+            <ant:fileset file="project.properties"/>
+            <ant:fileset file="RELEASE-NOTE.txt"/>
+            <ant:fileset file="NOTICE.txt"/>
+            <ant:fileset file="LICENSE.txt"/>
+        </ant:copy>
+
+        <ant:zip file="target/dist/jaxws-${jaxws.version}-src.zip">
+            <ant:fileset dir="${dist}/"/>
+        </ant:zip>
+        <ant:delete dir="${dist}"/>
+    </goal>
+
+    <goal name="javadocs">
+
+        <mkdir dir="target/apidocs"/>
+
+        <ant:javadoc packagenames="org.apache.jaxws.*"
+                     defaultexcludes="yes"
+                     destdir="target/apidocs"
+                     author="true"
+                     breakiterator="true"
+                     version="true"
+                     use="true"
+                     windowtitle="JAXWS API">
+            <ant:arg
+                    line="-J-Dhttp.proxy.port=${maven.proxy.port} -J-Dhttp.proxy.host=${maven.proxy.host}"/>
+            <ant:sourcepath>
+                <ant:pathelement location="src"/>
+            </ant:sourcepath>
+        </ant:javadoc>
+    </goal>
+</project>

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMethodMarshaller.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMethodMarshaller.java?view=diff&rev=526943&r1=526942&r2=526943
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMethodMarshaller.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMethodMarshaller.java Mon Apr  9 15:55:00 2007
@@ -30,12 +30,15 @@
 import org.apache.axis2.jaxws.message.factory.MessageFactory;
 import org.apache.axis2.jaxws.registry.FactoryRegistry;
 import org.apache.axis2.jaxws.runtime.description.marshal.MarshalServiceRuntimeDescription;
+import org.apache.axis2.jaxws.utility.ConvertUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
 import javax.xml.namespace.QName;
 import javax.xml.ws.WebServiceException;
+import java.lang.reflect.Array;
 import java.util.List;
+import java.util.ArrayList;
 import java.util.TreeSet;
 
 public class DocLitBareMethodMarshaller implements MethodMarshaller {
@@ -95,6 +98,9 @@
                 //As per JAXWS Specification section 3.6.2.3 if a null value is passes as an argument 
                 //to a method then an implementation MUST throw WebServiceException.
                 returnValue = returnElement.getTypeValue();
+                if (ConvertUtils.isConvertable(returnValue, returnType)) {
+                	returnValue = ConvertUtils.convert(returnValue, returnType);
+                }
                 if (returnValue == null) {
                     throw ExceptionFactory.makeWebServiceException(Messages.getMessage(
                             "NullParamErr1", "Return", operationDesc.getJavaMethodName(),
@@ -235,7 +241,22 @@
                 if (marshalDesc.getAnnotationDesc(returnType).hasXmlRootElement()) {
                     returnElement = new Element(returnObject, returnQName);
                 } else {
-                    returnElement = new Element(returnObject, returnQName, returnType);
+                    /* when a schema defines a SimpleType with xsd list jaxws tooling generates art-effects with array rather than a java.util.List
+                     * However the ObjectFactory definition uses a List and thus marshalling fails. Lets convert the Arrays to List.
+                     */
+                    if(operationDesc.isListType()){
+                       List list= new ArrayList();
+                       if(returnType.isArray()){
+                            for(int count = 0; count < Array.getLength(returnObject); count++){
+                                Object obj = Array.get(returnObject, count);
+                                list.add(obj);
+                            }
+                            returnElement = new Element(list, returnQName, List.class);
+                        }
+                      }
+                    else{
+                        returnElement = new Element(returnObject, returnQName, returnType);
+                    }
                 }
                 MethodMarshallerUtils.toMessage(returnElement, returnType,
                                                 marshalDesc, m,

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMinimalMethodMarshaller.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMinimalMethodMarshaller.java?view=diff&rev=526943&r1=526942&r2=526943
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMinimalMethodMarshaller.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/DocLitBareMinimalMethodMarshaller.java Mon Apr  9 15:55:00 2007
@@ -30,6 +30,7 @@
 import org.apache.axis2.jaxws.message.factory.MessageFactory;
 import org.apache.axis2.jaxws.registry.FactoryRegistry;
 import org.apache.axis2.jaxws.runtime.description.marshal.MarshalServiceRuntimeDescription;
+import org.apache.axis2.jaxws.utility.ConvertUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -106,6 +107,9 @@
                 //As per JAXWS Specification section 3.6.2.3 if a null value is passes as an argument 
                 //to a method then an implementation MUST throw WebServiceException.
                 returnValue = returnElement.getTypeValue();
+                if (ConvertUtils.isConvertable(returnValue, returnType)) {
+                	returnValue = ConvertUtils.convert(returnValue, returnType);
+                }                
                 if (returnValue == null) {
                     throw ExceptionFactory.makeWebServiceException(Messages.getMessage(
                             "NullParamErr1", "Return", operationDesc.getJavaMethodName(),



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org