简体   繁体   中英

Dynamic invocation of WSDL 2.0 described service

I am building a system in Java/Groovy that involves dynamic invocation of Web services. I use JAX-WS to invoke a service with a WSDL 1.1 interface, but I could not find any helpful information about how one would go about to implement DII for WSDL 2.0 descriptions.

Could anyone of you point me in the right direction about dynamic invocation for Web services with WSDL 2.0 interfaces?

Thanks in advance, moxn

PS: This post on a mailing list suggests that JAX-WS does not support WSDL 2.0. What other options do I have then? Does maybe Apache CXF come with support for WSDL 2.0?

EDIT: I just tried to dynamically invoke a WSDL 2.0 Web service with JAX-WS but got the WSDL exception faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'. Looks like JAX-WS DII does really not work with WSDL 2.0.

Apache CXF only support wsdl 1.1, but WSo2 has support for wsdl 2.0 and might have what you are looking for. It uses Axis 2 i believe.

I have not tried, but Axis 2.0 claims that WSDL 2.0 is supported (on the main page ).

So if you use XML Mapping tools compatible with the Axis2 API, it should work. Here are some compatible XML Mapping tools :

Note: Apache-CXF does not support WSDL 2.0.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM