JAX-WS relies on JAXB for data binding. When you invoke Wsimport Tool on a wsdl, It in-turn calls XJC tool in JAXB RI to generate the beans used by the JAX-WS runtime. Occasionally, You may need to pass XJC specific command line options through wsimport tool to customize the databinding. You can do it easily with Wsimport. This feature has been there from JAX-WS 2.1 and hopefully this blog explains the common questions on its usage.
If you are using XJC directly, you could pass those options on the command-line for XJC tool or as nested <arg> elements incase of XJC ant task.
For example, if you want to disable the strict schema correctness checking while compiling the schema.
More about XJC command-line options can be found here.
But, if you want to customize the XJC behavior using wsimport tool, you can use on of the following method.
For the command-line wsimport tool, you can pass xjc options using -B prefix. For passing the similar xjc option as described above, you can use
This mechanism can also be useful for using XJC plugins through wsimport as explained in Kohsuke's blog. Similarly, you can pass episode files created through previous jaxb compilation to Wsimport ant task using the nested <xjcarg> element.