解决com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.
来源:互联网 发布:什么软件录屏有声音 编辑:程序博客网 时间:2024/06/06 01:29
是在开发前一篇文章中的jax-ws handler的例子时遇到的问题,当我需要建立对应webservice的客户端时报了com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.错误
查了很多发现有一种是因为jax-ws版本问题,但我不是这个问题。
事实上问题就出在handler的实现上,当我实现SOAPHandler接口时,使用eclipse自动生成了借口定义的函数,而这些函数中其中有
自动生成时返回为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
- 使用反射清除所有挂在事件上的delegate
- 数据库设计
- F5 big-ip GTM DNS解析过程
- 谁有惊天王V17.5版本的破解版
- 覆写 javascript中的window.confirm 显示yes/no 按钮
- 解决com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag.
- 30个漂亮的网页设计案例
- Android的SimpleAdapter
- c++设计模式(9)-State模式
- NALU(NAL单元)
- git—local--ssh
- jQuery Q&A
- 参加江总《从技术走向管理》讲座有感
- 获取控件所有事件列表