Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Complete Schema Information  RSS feed

 
Mittal Vishal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to web services, I have parsed the web service & have the Definition object with me

Now I want to get all the schemas defined in the WSDL.
Schemas can have import/include statements.
Is there any way to get the complete schema information

So that I can iterate on the individual Schema & get the Element, Complex Types, restriction from it.


Thanks
Vishal
 
Palak Mathur
Ranch Hand
Posts: 342
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mittal Vishal wrote:Hi,

I am new to web services, I have parsed the web service & have the Definition object with me

Now I want to get all the schemas defined in the WSDL.
Schemas can have import/include statements.
Is there any way to get the complete schema information

So that I can iterate on the individual Schema & get the Element, Complex Types, restriction from it.


Thanks
Vishal


You can do anything. Like you have parsed WSDL, now traverse to the types element and retrieve all the schemas defined in it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!