G Pouzerate schrieb:
>Hi,
>
>I'm trying to run WSDL2Java (AXIS2 0.94) on a very simple WSDL file,
>and I get a weird exception:
>"Schema for namespace 'http://dmp/search/types' already contains type 'int"
>
What is that supposed to mean?
>
>The WSDL File is the following:
>
><?xml version="1.0" encoding="UTF-8"?>
><definitions
xmlns:tns="http://dmp" xmlns=""
xmlns:xsd=""
xmlns:soap=""
xmlns:ns2="http://dmp/search/types"
name="DmpEndpoint"
targetNamespace="http://dmp">
<types>
<schema
xmlns:tns="http://dmp/search/types"
xmlns:soap11-enc=""
xmlns:xsi=""
xmlns:wsdl=""
xmlns:xsd=""
xmlns=""
targetNamespace="http://dmp/search/types">
<import namespace=""/>
<simpleType name="sexType">
<restriction base="xsd:int">
<enumeration value="0"/>
</restriction>
</simpleType>
<simpleType name="deathType">
<restriction base="xsd:int">
<enumeration value="0"/>
</restriction>
</simpleType>
</schema>
</types>
></definitions>
>
>
>If I remove one of the two "simpleType", then this error doesn't occur
>anymore. (Note that I removed most of the file content to narrow the
>problem).
>
>I didn't find anything in the mailing list archive or on google
>regarding such a problem.
>
>Is anyone able to help me on that?
>
>Thanx
>G
>
>
>PS: Full exception stack:
>
>Exception in thread "main"
>
>java.lang.RuntimeException: java.lang.RuntimeException: Schema for
>namespace 'http://dmp/search/types' already contains type 'int
at (CodeGenerationEngine.java:118)
at (WSDL2Code.java:31)
at (WSDL2Java.java:21)
>Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
>Schema for namespace 'http://dmp/search/types' already contains type
'int
at (SimpleDBExtension.java:152)
at (CodeGenerationEngine.java:80)
2 more
>Caused by: java.lang.RuntimeException: Schema for namespace
>'http://dmp/search/types' already contains type 'int
at (XmlSchema.java:237)
at (SchemaBuilder.java:98)
at (XmlSchemaCollection.java:233)
at (SimpleDBExtension.java:86)
3 more
--
Hi,
I have the same problem on a different type: string
(@see mail subject: WSDL2Java Exception on valid WSDL)
if you solve this problem please let me know how
thanx