将 WSDL1.1 转换为 WSDL2.0
我问如何将包含一些 WS-SecurityPolicy 的 WSDL1.1 文件转换为 WSDL2.0 文件。
我尝试使用 apache woden 框架来使用本教程: http://ssagara.blogspot.com/2009/01/converting-wsdl11-to-wsdl20-using-woden.html,但我遇到了这个问题:
java.lang.IllegalArgumentException:遇到未知的扩展元素“{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy”,作为 javax.wsdl.Binding 的子元素。
请问有人可以解决这种转换问题吗?
i am asking how can we convert a WSDL1.1 File that contains some WS-SecurityPolicy to a WSDL2.0 file.
I have tried to use the apache woden framework to do so using this tutorial : http://ssagara.blogspot.com/2009/01/converting-wsdl11-to-wsdl20-using-woden.html, but i'am encountering this problem :
java.lang.IllegalArgumentException: Encountered unknown extension element '{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy', as a child of a javax.wsdl.Binding.
coudl any one have a solution for this kind of convertion please ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Woden 转换器工具基于 XSL 模板,不支持任何扩展处理,例如 WS-Policy。正如 Prabath 首先提到的,您需要从 WSDL 1.1 中删除这些安全策略。
顺便说一句,一旦您将策略添加到 WSDL 2.0 文档中,Woden 就可以通过其扩展处理机制来解析它们。请参考这篇文章 http://ssagara.blogspot .com/2009/03/parsing-wsdl-20-extensions-with-woden.html
Woden converter tool based on XSL templates and not support for any extension processing such as WS-Policy. As Prabath mentioned first you need to remove those security policy from WSDL 1.1.
BTW once you add policy to the WSDL 2.0 document Woden can parse them through it's Extensions handling mechanism. please refer this post http://ssagara.blogspot.com/2009/03/parsing-wsdl-20-extensions-with-woden.html
这并不困难——因为该策略独立于 WSDL。最好从 WSDL 1.1 中删除安全策略并将其转换为 2.0。然后单独将策略添加到 wsdl 中。
It cannot be difficult - since the policy is independent from WSDL. Better remove the security policy from the WSDL 1.1 and convert it to 2.0. Then separately add the policy to the wsdl.