How do I prevent JAXBElement<String> from being generated in a CXF Web Service client?

27-03-2017
<plugin>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-codegen-plugin</artifactId>
    <version>${cxf.version}</version>
    <executions>
        <execution>
            <id>generate-sources</id>
            <phase>generate-sources</phase>
            <configuration>
                <sourceRoot>${basedir}/src/main/java</sourceRoot>
                <wsdlOptions>
                    <wsdlOption>
                        <wsdl>${basedir}/src/main/resources/TekPencereTest.wsdl</wsdl>
                        <extraargs>
                            <extraarg>-verbose</extraarg>
                            <extraarg>-client</extraarg>
                            <extraarg>-validate</extraarg>
                            <extraarg>-xjc-verbose</extraarg>
                            <extraarg>-xjc-npa</extraarg>
                            <extraarg>-p</extraarg>
                            <extraarg>com.codesenior.telif.kultur.fonu.gumruk.ebelgetest</extraarg>
                            <extraarg>-b</extraarg>
                            <extraarg>${basedir}/src/main/resources/jaxb-bindings.xml</extraarg>
                        </extraargs>
                    </wsdlOption>
                </wsdlOptions>

            </configuration>
            <goals>
                <goal>wsdl2java</goal>
            </goals>
        </execution>
    </executions>
</plugin>

© 2019 All rights reserved. Codesenior.COM