Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Schema Writing Faild! error when generating Java code from WSDL by using Axis2

 
Imesh Damith
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic