| Author |
Schema Writing Faild! error when generating Java code from WSDL by using Axis2
|
Imesh Damith
Greenhorn
Joined: Jul 30, 2009
Posts: 12
|
|
Hi,
I am using Axis2_Codegen_Wizard_1.3.0 in Eclipse to generate server side java code from wsdl.
My schema file i have taken from - http://www.opentravel.org/Specifications/SchemaIndex.aspx?FolderName=2009A
most of the time i get an error when generating java code, saying java.lang.RuntimeException: Schema writing failed!.
I found theres an problem with some element but not sure why. when i comment those element i was able to generate java code from this wizard.
Also sometimes if i rename that problematic elements with less numbers of characters that is also a solution for this error. But I can not change the element names since that is OTA standard i must follow. I do not think the error is with the number of characters in a element, since there are lengthy names in some elements and those did not give any errors.
java 1.4
Thanks in advance.
|
 |
Ivan Krizsan
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
Hi!
Have you tried wsimport from the Java 6 JDK?
If it succeeds, then there may be a problem with the tool you are using.
Best wishes!
|
 |
 |
|
|
subject: Schema Writing Faild! error when generating Java code from WSDL by using Axis2
|
|
|