While generating code from wsdl schemas. Netbeans generates wrong characters. I am getting these errors.
unmappable character for encoding UTF-8
protected Boolean ?sNotOrdered;
and when i build the project it generates the code from scratch and modifies my fix.
how to reproduce
change your localisation to Turkey/Turkish from control panel. And use the wsdl file (i will add it as an attachment) i
attached. The problem is Turkish has a spotless 'i' (ı) and 'I' (İ) with spot.
Created attachment 62152 [details]
Created attachment 62153 [details]
Generated source file
there have been other issues related to use of Turkish letter i
as mentioned below - perhaps these can give info to developers about this -
search on word Turkish in issue summaries.
can you try it using jdk6, if not already ? I have heard that in
some cases it helps for this situation.
I am using JDK 6.
the problem is toLowerCase and toUpperCase functions converts i to İ (I with spot).
While generating java source "toLowerCase" must be used as "toLowerCase(Locale.ENGLISH)"
One of the issue belongs likely to JAX-WS runtime (generating invalid sources).
Another issue is that Build (or Clean & Build) replaces user modification. One of the solution would be to enable
generate JAX-WS classes to regular sources root (e.g. src/java)
The workaround now is to copy the sources you've modified from build/generated/wsimport/client to java/src directory.
(Of course, the package name must be preserved)
The original problem is inside wsimport external utility.
It should be fixed there.
The IDE could just provide workaround which is not good.