我正在使用SoapUI生成JAX-WS客户端。由于某些原因我还无法理解,在生成过程中一些属性已被改变。例如,假设我有一个属性地址:
private String address;
生成后,地址属性更改为:
private JAXBElement<String> address;
有没有办法避免这种变化?
我发现了这个问题,但我不确定在哪里配置这个binding.xml:WebService Client and List<JAXBElement<?>>
任何帮助都将非常感激。
提前致谢。
答案 0 :(得分:1)
wsimport -keep -verbose http://service?wsdl -b format.xml
format.xml&gt;
<jaxb:bindings version="2.0"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
<jaxb:bindings>
<jaxb:globalBindings generateElementProperty="false"/>
</jaxb:bindings>
</jaxb:bindings>