This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes How to parse XSD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to parse XSD" Watch "How to parse XSD" New topic

How to parse XSD

Mortin kim
Ranch Hand

Joined: Nov 15, 2007
Posts: 44
Can any one tell me how to parse the XSD which is there is WSDl.
My problem is getting elements and their types from XSD.

like i need to invoke some service frmo WSDl for that i need to know what is the XML input and XML output for that i need to get XML schema and that elements

any code will be most appreciatble.

Nitesh Kant

Joined: Feb 25, 2007
Posts: 1638

Welcome to the world of Web Services
What people usually do is use tools like WSDL2JAVA to create stubs for making the web service calls. These stubs have a choice of bindings. It can be XML beans, some other technology or other tool specific data binding.
Data binding is nothing but Java classes that represents the message of the WSDL operation and a stub class contains methods corresponding to WSDL operations with arguments/return types as the data binding.
This link has some information about using wsdl2java with Axis2.
[ February 08, 2008: Message edited by: Nitesh Kant ]

apigee, a better way to API!
jQuery in Action, 2nd edition
subject: How to parse XSD
Similar Threads
XML Schema Parser
parsing XSD from WSDL using java
Convert XSD to XML
validating xml with xsd
XML/XSD to Database using Java