How to parse wsdl and xsd files?

主宰稳场 提交于 2019-12-25 03:48:07

问题


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:


1). Hope this link will be useful for you to choose the best parser, Parse WSDL Effectively.

I have tried using Apache Woden, WSDL4J and Membrane SOA. Among these, Membrane SOA seems to be developer friendly.

2). Place the dependent XSD's in the folder where you have placed the WSDL. Then try parsing your WSDL, it should work fine.




回答2:


Maybe the JWSDL help will be of service. It also makes calls to the services.

Here a discussion on the subject



来源:https://stackoverflow.com/questions/5632026/how-to-parse-wsdl-and-xsd-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!