Convert WSDL1.1 To WSDL2.0
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://schema开发者_如何学Gos.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 ?
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
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.
精彩评论