若是想使用wsimport生成不带JAXBElement对象的代理,则能够使用jaxws/jaxb绑定文件,如文件命名为binding.txt,内容如html
<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>
则使用命令时加上java
-b "binding.txt"
若是使用.net的WCF则能够参考Customizations for WCF Service WSDL。web