解决com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.
来源:互联网 发布:游族网络 总经理 编辑:程序博客网 时间:2024/05/16 10:04
转发自:http://blog.csdn.net/chyroger/article/details/6394586
是在开发前一篇文章中的jax-ws handler的例子时遇到的问题,当我需要建立对应webservice的客户端时报了com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.错误
查了很多发现有一种是因为jax-ws版本问题,但我不是这个问题。
事实上问题就出在handler的实现上,当我实现SOAPHandler接口时,使用eclipse自动生成了借口定义的函数,而这些函数中其中有
- @Override
- public boolean handleMessage(SOAPMessageContext context) {
- // TODO Auto-generated method stub
- return false;//!!!
- }
自动生成时返回为false,而这个返回意味着,经过这个handler,当前的webservice将被终止处理,也就是说,webservice将不会有正常的返回,这也导致客户端要parse返回的SOAP消息时出现标签的识别错误。所以只要该成true就正常了。而且这个函数会被调用两次,一次是webservice的inbound,一次是outbound
- 解决com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.
- 解决com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.
- com.sun.xml.internal.ws.model.RuntimeModelerException:
- 解决maven编译错误:程序包com.sun.xml.internal.ws.spi不存在
- com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error:
- com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error:
- com.sun.xml.internal.ws.model.RuntimeModelerException错误
- com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error:
- com.sun.xml.internal.ws.model.RuntimeModelerException错误
- com.sun.xml.internal.ws.model.RuntimeModelerException: class:com.mark.cxf.service could not be found
- com.sun.xml.internal.ws.server.sei.EndpointMethodHandler invoke java.lang.IllegalArgumentException
- Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException: 解决办法
- [webservice]com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error:
- BUG:com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error
- Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport e
- Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException:
- Exception in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException
- com.sun.xml.internal.messaging.saaj.SOAPException
- linux message queue msgget
- 关于java.utils中的calendar,要获取一个月的总天数
- epoll 内核实现
- Bootstrap Popover 隐藏的Javasript方法
- 英文版CentOS安装中文输入法 terminal支持中文方法
- 解决com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.
- HDU 1596
- Deep Learning深度学习相关入门文章汇摘
- Ubuntu 环境变量各配置文件
- GDI+入门
- java swing按行读取文本文件,防止乱码
- style对象应用
- CentOS 安装多种解码器打造Linux的全能播放器
- DateTime.Now.ToString()12与24小时制