moxn
moxn

Reputation: 1800

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.

Upvotes: 3

Views: 1534

Answers (2)

Benoit Courtine
Benoit Courtine

Reputation: 7064

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.

Upvotes: 1

stevebot
stevebot

Reputation: 24035

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.

Upvotes: 2

Related Questions