问题
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