These questions may be silly, but I did not find a way to get the WSDL 2.0 created by the JAX-WS RI web service.
I am using the latest version of jax-ws, and if I create a very simple WS (like the example below), the generated WSDL will be version 1.1.
@WebService public interface RandomNumberGenerator { Integer getRandomNumber(); } @WebService(endpointInterface="RandomNumberGenerator") public class RandomNumberGeneratorImpl { public Integer getRandomNumber() { return (int) (Math.random() * 1000); } }
Does anyone know how I explicitly tell JAX-WS to create WSDL 2.0? Given the 2.0 recommendation of the W3C since 2007, I am sure that JAX-WS offers a way to generate it.
Thanks.
cldjr source share