You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Desmond Whewell (CV/ETL)" <de...@ericsson.com> on 2007/06/18 11:23:53 UTC

[axis2] wsdl2java versus scomp (xmlbeans)

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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [axis2] wsdl2java versus scomp (xmlbeans)

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
This could be a problem in our side because we call the XMLBeans
compiler programmatically with a bunch of Axis2 specific
configurations and we may be missing a certain option. We appreciate
if you can create a jira and attach the WSDL

thanks
Ajith

On 6/18/07, Desmond Whewell (CV/ETL) <de...@ericsson.com> wrote:
> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Ajith Ranabahu

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