I am using WSDL4J for my graduation thesis and I had troubles finding type definitions imported by the WSDL being parsed.
After one week of searching, debugging and curses I found it.
It was “very simple”:
Definition.getTypes().getExtensibilityElements().get(0).getImports().values()
get the first element (a Vector), get the first element of the Vector then
.getReferencedSchema().getElement()
How was I so blind?
July 24, 2008 at 10:32 am |
[...] So, I must do my work (digging code) much more instead of trying to find some mythological API [...]
February 14, 2009 at 2:23 pm |
Sir I m also working with wsdl4j package for parsing a wsdl file.. i could not extract the datatypes of the wsdl file alone.. can u please help or send the code to parse a wssdl file.. thank you
February 19, 2009 at 10:00 am |
As I stated in my next post about that, the only way I found was using Axis SymbolTable class, and it worked well only for simple types. If you dig the code of Apache Axis you will find a comment in the type management method sounding like “this part is mess”.