geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Sauthier <Guillaume.Sauth...@Objectweb.org>
Subject [EWS] ews/src/test/org/apache/geronimo/ews/jaxrpcmapper MapperTest.java,1.5,1.6
Date Mon, 23 Feb 2004 10:46:46 GMT
Hello

I add a test for anonymous type mapping today.
I have used sample from the JSR 921.
only modification done : I've declared a prefix for namespace X :
xmlns:x="X" in xsd:schema tag
and prefixed someOtherElement ref with x:

And finally this test fails :)
Here is the stacktrace :
Running org.apache.geronimo.ews.jaxrpcmapper.MapperTest
org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name:
/home/sauthieg/ws-projects/ews/ews/target/generated/samples/mapper/anonymous/X/_root.java.
 
Hint: you may have mapped two namespaces with elements of the same name
to the same package name.
	at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:152)
	at
org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:151)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeGeneratorFactory$Writers.generate(J2eeGeneratorFactory.java:300)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generateTypes(J2eeEmitter.java:495)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.generate(J2eeEmitter.java:396)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter.access$200(J2eeEmitter.java:96)
	at
org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter$WSDLRunnable.run(J2eeEmitter.java:353)
	at java.lang.Thread.run(Thread.java:534)

Ias, is there already something in CVS for anonymous type handling ?

Regrds
Guillaume


sauthieg@users.sourceforge.net wrote:
> 
> Update of /cvsroot/ews/ews/src/test/org/apache/geronimo/ews/jaxrpcmapper
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8979
> 
> Modified Files:
>         MapperTest.java
> Log Message:
> add test for anonymous mapping
> 
> Index: MapperTest.java
> ===================================================================
> RCS file: /cvsroot/ews/ews/src/test/org/apache/geronimo/ews/jaxrpcmapper/MapperTest.java,v
> retrieving revision 1.5
> retrieving revision 1.6
> diff -u -d -r1.5 -r1.6
> --- MapperTest.java     10 Feb 2004 05:08:48 -0000      1.5
> +++ MapperTest.java     23 Feb 2004 10:20:49 -0000      1.6
> @@ -62,4 +62,11 @@
>                                       getTestFile("src/samples/mapper/frenchzip/FrenchZip.wsdl")};
>          WsdlToJ2ee.main(args);
>      }
> +
> +    public void testAnonymousTypes() throws Exception {
> +        String args[] = new String[]{"-m",getTestFile("src/samples/mapper/anonymous/mapping.xml"),
> +                                     "-o", getTestFile("target/generated/samples/mapper/anonymous"),
> +                                     getTestFile("src/samples/mapper/anonymous/anonymous.wsdl")};
> +        WsdlToJ2ee.main(args);
> +    }
>  }
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> ews-devel mailing list
> ews-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ews-devel

Mime
View raw message