Using: Axis2 1.2, xmlbeans 2.2.0

I have a wdsl file and a set of schemas that I am trying to process
using wsdl2java. When invoked, wsdl2java fails with:

-------
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati
onEngine.java:256)
...
... Stuff chopped out
...
Caused by: org.apache.xmlbeans.XmlException:
project://local/<my>.xsd:3:1: error: Included schema has a target
namespace "one-uri" that does not match the source namespace "two-uri"
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaT
ypeSystemCompiler.java:225)
-------

Note: the above is obfuscated, but it shows the intent.

The wsdl file and schema set are valid, according to XMLSpy.

As an experiment, I downloaded xmlbeans 2.2.0 and compiled the very same
wsdl file. xmlbeans completed without complaint, generating all of the
expected class and xsb files.

In short, why does Axis2 and xmlbeans have different behaviour when
processing identical schemas.

I can always fall back to calling Axis2 with no data binding and then
use the explicit xmlbeans classes, but I'd prefer to use the monolithic
approach.

Cheers, Des

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to