tags:

views:

157

answers:

1

I am using the wsimport ant task of JAX-WS to generate sources based on some wsdl.

However, these generated sources all seem to be UTF-8 encoded. Is there a way to change the encoding of the files wsimport task produces?

+1  A: 

This is somewhat badly documented. WSImport uses XJC (from JAXB) to create Java files and the documentation here indicates that changing the character encoding in the XML file should suffice (although I have not tried this). If you are content with running JAXB by hand then you can also configure this via the JAXB_ENCODING property on your JAXBContext.

Lars Tackmann