[英]Generate XSD from WSDL in eclipse
Is there a way to generate XSD from a WSDL file in eclipse IDE.It's a project requirement to generate the XSD from the WSDL and then auto generate all the java classes using jaxb.有没有办法在eclipse IDE中从WSDL文件生成XSD。从WSDL生成XSD然后使用jaxb自动生成所有java类是项目要求。 I also use eclipselink in my project.
我也在我的项目中使用了 eclipselink。 Can eclipselink be used for this task?
eclipselink 可以用于此任务吗?
Select File
/ New
/ Other...
/ JAXB
/ JAXB Classes from Schema
. JAXB Classes from Schema
选择File
/ New
/ Other...
/ JAXB
/ JAXB Classes from Schema
。
When specifying schema options there is an option "Source is a WSDL, use its schema", or something like that...指定模式选项时,有一个选项“源是 WSDL,使用它的模式”,或者类似的东西......
To tell you the truth, i never used this feature.说实话,我从来没有用过这个功能。 I generated classes from normal Schema files, but noticed the aforementioned option.
我从普通的 Schema 文件生成了类,但注意到了上述选项。
我可以使用 SOAP UI 从 WSDL 生成 xsd 文件来解决这个问题。这要容易得多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.