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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With