JAXB unmarshaling Ignoring the SOAP Envelope/Header tags(JAXB 解组忽略 SOAP Envelope/Header 标记)

本文介绍了JAXB 解组忽略 SOAP Envelope/Header 标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个用于访问 Web 服务的客户端.我正在使用一些 JAXB 生成的类(Netbeans 6.9)来解组我的 xml 数据.

I have a client I am building for accessing a web service. I am using some JAXB generated classes(Netbeans 6.9) to unmarshal my xml data.

我在尝试解组来自此 Web 服务的 InputStream 响应时遇到意外的元素错误,如果我将响应保存到文件中,我也会遇到同样的意外元素错误.

I am getting unexpected element errors when trying to unmarshal the InputStream response from this webservice, I also get the same unexpected element error if I save the response to a file.

javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.w3.org/2003/05/soap-envelope", local:"Envelope"). Expected elements are <{http://www.cmicdataservices.com