Dynamically invoking the described WSDL 2.0 service

I am creating a system in Java / Groovy that includes a dynamic call to Web services. I use JAX-WS to invoke a service with WSDL 1.1, but I could not find useful information on how DII could be implemented to describe WSDL 2.0.

Can any of you point me in the right direction a dynamic call for web services with WSDL 2.0 interfaces?

Thanks in advance, moxn

PS: This message on the mailing list suggests that JAX-WS does not support WSDL 2.0. What other options do I have? Perhaps Apache CXF comes with WSDL 2.0 support?

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

+3
source share
2 answers

Apache CXF only supports wsdl 1.1, but WSo2 supports wsdl 2.0 and may have what you are looking for. It uses Axis 2, I believe.

+2
source

I have not tried it, but Axis 2.0 claims to support WSDL 2.0 (on the main page ).

So, if you are using XML Mapping tools compatible with the Axis2 API, it should work. The following are some compatible XML mapping tools:

. Apache-CXF WSDL 2.0.

+1

Source: https://habr.com/ru/post/1758503/


All Articles