axis2 client namespace mismatch
在基于axis2进行WebService开发部署时(使用Java客户端调用服务)可能会报namespace mismatch require http://ws.apache.org/axis2 found http://ws.apache.org/axis2/xsd 这样的错误.根据本人的经验,当使用POJO这种方式开发时,Qname中的参数为http://ws.apache.org/axis2,在基于service.xml开发时其参数为http://service. 当然当命名空间报错时在Java开发环境下,可以从调试窗口发现类似的信息:Exception in thread "main" org.apache.axis2.AxisFault: namespace mismatch require http://service foundhttp://ws.apache.org/axis2 .将命名空间改为require后面的即可。 如下我的报错 Exception in thread "main" org.apache.axis2.AxisFault: namespace mismatch require http://fileserver.sdfr.com found http://service 我服务端发布的服务应该是红色报名,但是我的代码中用的是蓝色部分,所以报错