简体   繁体   English

如何解析wsdl和xsd文件?

[英]How to parse wsdl and xsd files?

I've been looking for a way to programmatically parse WSDL and associated XSD files to get values from annotation / documentation tags. 我一直在寻找以编程方式解析WSDL和关联的XSD文件以从批注/文档标签中获取值的方法。 I managed to get values from wsdl using wsdl4j, but how do i do this for XSD files? 我设法使用wsdl4j从wsdl获取值,但是如何为XSD文件执行此操作? I tried to use XSOM but for some reason i always get null. 我尝试使用XSOM,但由于某些原因我总是会得到null。

1). 1)。 Hope this link will be useful for you to choose the best parser, Parse WSDL Effectively . 希望此链接对您选择最佳的解析器“ Parse WSDL Effectively有用。

I have tried using Apache Woden , WSDL4J and Membrane SOA . 我尝试使用Apache WodenWSDL4JMembrane SOA Among these, Membrane SOA seems to be developer friendly. 其中,膜SOA似乎对开发人员友好。

2). 2)。 Place the dependent XSD's in the folder where you have placed the WSDL. 将相关的XSD放在您放置WSDL的文件夹中。 Then try parsing your WSDL, it should work fine. 然后尝试解析您的WSDL,它应该可以正常工作。

Maybe the JWSDL help will be of service. 也许将提供JWSDL帮助。 It also makes calls to the services. 它还会调用服务。

Here a discussion on the subject 这里是关于这个话题的讨论

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM