Lost and found

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?

Creative Commons License
Content is released under Creative Commons License.

Advertisements

3 comments on “Lost and found

  1. […] So, I must do my work (digging code) much more instead of trying to find some mythological API […]

  2. Abhishek says:

    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

    • Giuseppe says:

      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”.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s