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 标记
基础教程推荐
- 将 double 转换为 Int,向下舍入 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- JPA惰性列表上的流 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 将 Windows 证书导入 Java 2022-01-01
- Maven:无效的目标版本:10 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
