在基于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.apache
固然当命名空间报错时在Java开发环境下,能够从调试窗口发现相似的信息:Exception in thread "main" org.apache.axis2.AxisFault: namespace mismatch require http://service foundhttp://ws.apache.org/axis2 .将命名空间改成require后面的便可。ui
以下个人报错spa
Exception in thread "main" org.apache.axis2.AxisFault: namespace mismatch require http://fileserver.sdfr.com found http://service
调试
我服务端发布的服务应该是红色报名,可是个人代码中用的是蓝色部分,因此报错。修改为红色部分即不在报错server