permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to parse XSD" Watch "How to parse XSD" New topic
Author

How to parse XSD

Mortin kim
Ranch Hand

Joined: Nov 15, 2007
Posts: 44
HI.,
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.

Thanks
Kim.
Nitesh Kant
Bartender

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to parse XSD
 
Similar Threads
XML/XSD to Database using Java
Convert XSD to XML
validating xml with xsd
parsing XSD from WSDL using java
XML Schema Parser