org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException:
Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at sample.addressbook.service.MsgServiceMsgServiceSOAP11Port_httpStub.getMsg(MsgServiceMsgServiceSOAP11Port_httpStub.java:205)
at sample.addressbook.adbclient.AddressBookADBClient.main(AddressBookADBClient.java:45)
我们公司的项目使用axis2 webservice 传输数据时报出以上异常,我到现在还没有处理好,到网上看了一下,有以下几种原因,希望大家多多指点一下:
1:WstxEOFException是在解析XML文件时遇到错误,导致这个错误原因Exception thrown during parsing, if an unexpected EOF is encountered. Location usually signals starting position of current Node。
prolog at [row,col {unknown-source}]: [1,0]是在解析XML文件时未知来源,可能是你的WSDL命名空间错误,去检查一下
2:你的XML文件如果是encoding=“UTF-8”,把它改成encoding=“GBK”。
另外,看看你的数据库的字符编码设置,如果不是“GBK”的则要需要转化,还有你全局配置文件里的设置,如Web.xml里的字符编码,总之影响你的显示的中文内容的相关字符编码配置最好一致。
3:杀毒软件 ,防火墙没关闭也有可能影响
我有一个webservice的圈子,期待更多了解webservice和想了解webservice的人加入......................
分享到:
相关推荐
一个基于axis的webservice接口例子
本案例实现使用Axis2生成.arr包发布WebService服务,并使用Axis2生成客户端代码方式调用WebService
Axis2WebService源码。本地测试通过。
webService—Axis实例webService—Axis实例webService—Axis实例webService—Axis实例webService—Axis实例webService—Axis实例webService—Axis实例
使用Axis2搭建_WebService
axis2例子 webservice axis2 示例axis2例子 webservice axis2 示例axis2例子 webservice axis2 示例axis2例子 webservice axis2 示例axis2例子 webservice axis2 示例
axis发布webservice教程axis发布webservice教程axis发布webservice教程axis发布webservice教程
使用axis开发webservice使用的jar包
简单例子:axis2整合spring发布webservice,以及session的管理
Axis2 Webservice端例子Axis2 Webservice端例子
基于axis2的webservice的demo
借鉴网上的资源,弄了一个SpringBoot开发WebService之Axis示例。
Android 利用axis2 调用webservice 包含j2ee服务端代码和Android客户端代码 代码实现包含 List,map ,对象传递
Axis2 webservice 服务端插件 用于集成MyEclipse
Axis2WebService与Spring的整合
spring+axis集成webservice
axis2 webservice开发指南
资源包含了:axis2-1.7.4-bin.zip、axis2-1.7.4-war.zip、axis2-eclipse-...备注:资源超过了70M 分成了3部分 见axis2方式开发webservice(一)和 axis2方式开发webservice(二)、 axis2方式开发webservice(三)
Eclipse + Axis2发布WebService
Axis2创建WebService