Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes Complete Schema Information Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Complete Schema Information" Watch "Complete Schema Information" New topic
Author

Complete Schema Information

Mittal Vishal
Greenhorn

Joined: Nov 13, 2006
Posts: 21
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

Joined: Jan 29, 2007
Posts: 313

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.


Palak Mathur | My Blog | TechJaunt | What is JavaRanch? | List of All FAQs
 
Consider Paul's rocket mass heater.
 
subject: Complete Schema Information
 
Similar Threads
Can JAXB handle Polymorphism
How do I create an XML schema?
DTDs and XML Schemas
Can i use xslt to generate html pages on .xsd files?
Get Inline Schema Information defined in Types section of webservice