Is there a tool to convert xsd to java class? I remember that I used one of them called xsd2java, but I don’t remember where it is located.
You can use the XJC binding compiler
http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/jaxb/xjc.html
But it creates java-compatible java objects with annotations. So you will need to remove jaxb stuff
You can edit wsdl2java.bat OR wsdl2java.sh in the axis installation folder and replace org.apache.axis2.wsdl.WSDL2Java with org.apache.axis2.schema.XSD2Java , it is better to save the wsdl2java.bat file for xsd2Java.bat
Apache XMLBeans: http://xmlbeans.apache.org/
Use scomp to generate Java classes from the desired schema.
Apache Axis has xsd2java .
There is an ANT task for wsdl2java , but I do not believe that it is for xsd2java.
xsd2java has a main () method, where you can specify the source schema and output location.
see also https://issues.apache.org/jira/browse/CXF-3269 - perhaps this RFE will eventually lead to a shell script. But you really can copy wsdl2java and replace the java class - it works
Source: https://habr.com/ru/post/1343464/More articles:Using emptiness as syntactic sugar to protect against implicit globals, yes or no? - javascriptC # dependency injection - c #Setting the background for image management - c #C / C ++ sound library for musical instruments where you can manipulate audio data - c ++how to determine available physical memory in Linux - linuxdebugging HTTP requests in chrome - debuggingPython operations list - pythonusing semicolon in javascript - javascriptGroupSequence and ordered evaluation in JSR 303 - spring-mvcWhy do I get a "Cannot allocate memory" error when creating a message queue in POSIX? - cAll Articles