问题描述
我一直在寻找一种以编程方式解析WSDL和关联的XSD文件以从批注/文档标签中获取值的方法.我设法使用wsdl4j从wsdl获取值,但是如何为XSD文件执行此操作?我尝试使用XSOM,但由于某种原因我总是会得到null.
I've been looking for a way to programmatically parse WSDL and associated XSD files to get values from annotation / documentation tags. I managed to get values from wsdl using wsdl4j, but how do i do this for XSD files? I tried to use XSOM but for some reason i always get null.
推荐答案
1).希望此链接对您选择最佳解析器 Parse WSDL Effectively
.
1). Hope this link will be useful for you to choose the best parser, Parse WSDL Effectively
.
我尝试使用 Apache Woden
, WSDL4J
和 Membrane SOA
一个>.其中,膜SOA似乎对开发人员友好.
I have tried using Apache Woden
, WSDL4J
and Membrane SOA
. Among these, Membrane SOA seems to be developer friendly.
2).将相关的XSD放置在放置WSDL的文件夹中.然后尝试解析您的WSDL,它应该可以正常工作.
2). Place the dependent XSD's in the folder where you have placed the WSDL. Then try parsing your WSDL, it should work fine.
这篇关于如何解析wsdl和xsd文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!