axis2 client namespace mismatch

血红的双手。 提交于 2019-12-05 19:32:57

 在基于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    

    我服务端发布的服务应该是红色报名,但是我的代码中用的是蓝色部分,所以报错。修改成红色部分即不在报错

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!