在@WebService的注解的类上,添加@BindingType(value=SOAPBinding.SOAP12HTTP_BINDING)注解
@WebService
@BindingType(value=SOAPBinding.SOAP12HTTP_BINDING)
public interface IHelloService {
public String getName(String name);
}
下面是SOAPBinding类中SOAP12HTTP_BINDING的值:
/**
* A constant representing the identity of the SOAP 1.2 over HTTP binding.
*/
public static final String SOAP12HTTP_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/";