java - Using JAXB binding extensions in wsimport -


i know how enable extensions in plain jaxb bindings file - list them in root element's extensionbindingprefixes:

<jaxb:bindings      version="1.0"     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"     xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"     jaxb:extensionbindingprefixes="xjc"     ...> 

however, jax-ws bindings file doesn't have anywhere put attribute.

<jaxws:bindings     version="2.0"     xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"     xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"     wsdllocation="../wsdl/schema.wsdl"     ...> 

it cannot go in root, nor in of nested jaxb:bindings elements.

how supposed enable binding extensions?


example command-line arguments used jaxws-maven-plugin:2.4.1:

-keep -s 'target/generated-sources/wsimport' -d 'target/classes' -encoding utf-8 -extension -xnocompile -b-xjsr303annotations -b-xvalue-constructor -b-xinheritance -b 'src/jaxws/bindings.xml' 'src/wsdl/schema.wsdl' 


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -