• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic