JAXB unmarshaling Ignoring the SOAP Envelope/Header tags(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
本文标题为:JAXB 解组忽略 SOAP Envelope/Header 标记
基础教程推荐
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 存储 20 位数字的数据类型 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
