解决wsimport 生成webservice接口代码定义中含有JAXBElement问题
来源:互联网 发布:阿里云如何禁止ip访问 编辑:程序博客网 时间:2024/06/17 08:10
1.新建xml 文件 1.xml
<jaxb:bindings version="2.1" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"; xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"; xmlns:xs="http://www.w3.org/2001/XMLSchema">; <jaxb:globalBindings generateElementProperty="false"/> </jaxb:bindings>2.打开命令行 wsimport -b "1.xml" http://localhost:8080/hello?wsdl 生成的webservice 接口代码
阅读全文