添加要bindingFile的jaxb配置文件,如下:

<jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
<jaxb:globalBindings generateElementProperty="false" />
</jaxb:bindings>

引入bindingFile的jaxb配置文件,如下:

<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>generate-sources-w2j</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>src/main/java</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}\src\main\resources\wsdl\20180628-OnePoint.svc-D11V2-single.wsdl</wsdl>
<extendedSoapHeaders>true</extendedSoapHeaders>
<autoNameResolution>true</autoNameResolution>
<bindingFiles>
<bindingFile>${basedir}\src\main\resources\wsdl\jaxb-bindings.xml</bindingFile>
</bindingFiles>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>

转载:https://stackoverflow.com/questions/12508741/jaxb-generating-jaxbelementstring-instead-of-string

最新文章

  1. 【转】[fix] Wireshark error: There are no interfaces on which a capture can be done. on Mac OS X
  2. WordPress程序伪静态规则(Nginx/Apache)及二级目录规则
  3. 2.SQLAlchemy文档-SQLAlchemy ORM(中文版)
  4. OC内存管理(MRC)
  5. SQL优化-索引
  6. H - Frequent values
  7. platform_driver_register()--如何match之后调用probe
  8. Spark2.0编译
  9. windows进程清理脚本
  10. nginx源代码分析--高性能server开发 常见的流程模型
  11. Web Api 图片上传,在使用 Task.ContinueWith 变量无法赋值问题
  12. Android查缺补漏--ContentProvider的使用
  13. VS下WPF自定义控件的基本步骤和基本代码实现
  14. 个人对【依赖倒置(DIP)】、【控制反转(IOC)】、【依赖注入(DI)】浅显理解
  15. SQLI DUMB SERIES-19
  16. echarts.js制作中国地图
  17. spfa学习笔记
  18. jenkins进阶-集成钉钉机器人(6)
  19. Android指令处理流程源代码追踪
  20. Android网络请求

热门文章

  1. intelij idea常用功能介绍
  2. 开机出错提示 cpu fan speed error detected
  3. spring boot 添加客户端负载均衡
  4. redis 集群常用命令
  5. 【IDEA&amp;&amp;Eclipse】1、为何 IntelliJ IDEA 比 Eclipse 更适合于专业java开发者
  6. L333 Should You Listen to Music While You Work?
  7. day 06 字符串和列表的方法
  8. 剑指Offer 4. 重建二叉树 (二叉树)
  9. linux 查看进程下进程的数量
  10. python实现简单的定时任务