Fight With Me!!!

导航

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后面的即可。

posted on 2017-03-31 09:42  nickTimer  阅读(858)  评论(0编辑  收藏  举报