javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

wsimport fails on non UTF-8 locales #1227

Open LanceAndersen opened 6 years ago

LanceAndersen commented 6 years ago

Previously trcked via: https://bugs.openjdk.java.net/browse/JDK-8134598

When wsimport generates a client-jar from a WSDL-file with a characterset other than UTF-8, this client-jar is unusable. This problem results from the fact, that client-jar contains a WSDL, with a missing XML-declaration. (ex. <?xml version="1.0" encoding="ISO-8859-1"?> )

The work around is to run wsimport in a UTF-8 locale

A reproducer is attached along with log files that show success and failure.