在和.net做联调的时候,报错

A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.

看来是soap协议不匹配

在接口或实现类上声明

@BindingType(value = "http://www.w3.org/2003/05/soap/bindings/HTTP/")

或者

@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)

注意要引入geronimo-jaxws_2.2_spec-1.0.jar包

生成的wsdl文件我们可以看到

xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/

相关文章:

  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-08-05
  • 2021-10-17
  • 2021-06-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-29
  • 2021-05-07
  • 2021-09-03
相关资源
相似解决方案