如何解析wsdl和xsd文件? [英] How to parse wsdl and xsd files?

查看:120
本文介绍了如何解析wsdl和xsd文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种以编程方式解析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).希望此链接对您选择最佳解析器

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

我尝试使用 Apache Woden 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文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆