Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to parse XSD

 
Mortin kim
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic