CXF中 the namespace on the "definitions" element, is not a valid SOAP version报错!

怼烎@ 2022-02-19 02:15 392阅读 0赞
  1. org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.

遇到以上中报错,将

  1. axWsServerFactoryBean factory=new JaxWsServerFactoryBean();
  2. factory.setAddress("http://localhost:8888/book?wsdl");

?wsdl去掉就好了
详细的解答如下:
CXFthe namespace on the “definitions” element, is not a valid SOAP version报错

发表评论

表情:
评论列表 (有 0 条评论,392人围观)

还没有评论,来说两句吧...

相关阅读