user3302039
user3302039

Reputation: 61

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.

Upvotes: 0

Views: 1536

Answers (1)

Sinan
Sinan

Reputation: 21

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>

Upvotes: 1

Related Questions