如果想使用wsimport生成不带JAXBElement对象的代理,则可以使用jaxws/jaxb绑定文件,如文件命名为binding.txt,内容如

<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> 

则使用命令时加上

-b "binding.txt"

如果使用.net的WCF则可以参考Customizations for WCF Service WSDL

相关文章:

  • 2022-01-11
  • 2021-12-15
  • 2021-04-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-16
  • 2021-06-20
  • 2021-10-04
  • 2022-01-23
  • 2021-06-29
  • 2022-01-13
  • 2022-12-23
相关资源
相似解决方案