创建webservice时需要将soap1.1协议转换soap1.2协议。
引入注解@BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)如果抛出
com.sun.xml.internal.ws.server.ServerRtException: Cannot generate WSDL for binding "http://www.w3.org/2003/05/soap/bindings/HTTP/"的异常的话,
将@BindingType的值改为@BindingType(value = "http://java.sun.com/xml/ns/jaxws/2003/05/soap/bindings/HTTP/")试试,本人实验成功。