简体   繁体   中英

Generate JAX-WS Client using SoapUI without JAXBElement

I'm generating a JAX-WS Client, using SoapUI. For some reason I couldn't understand yet, some attributes have been changed during the generation. For example, let's say I have an attribute address:

private String address;

After the generation, the address attribute changed to:

private JAXBElement<String> address;

Is there a way to avoid this change?

I found this question, but I'm not sure where to configure this binding.xml: WebService Client and List<JAXBElement<?>>

Any help will be really appreciated.

Thanks in advance.

wsimport -keep -verbose http://service?wsdl -b format.xml

format.xml >

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM