|
UTF8 error message at generation of a java webservice from a wsdl file in JDeveloper |
|
Facts -
Java
|
|
Wednesday, 21 April 2010 19:40 |
|
This page is for Oracle JDeveloper 11.1.1.2.0.
When generating a java webservice from a wsdl file in JDeveloper I got the following error message:
Error importing schemas: java.io.UTFDataFormatException: Invalid UTF8 encoding.
The wsdl and its included schema's used utf-8 encoding in the first line of each file:
<?xml version = '1.0' encoding = 'UTF-8'?>
After changing the environment encoding in JDeveloper to UTF-8 I was able to import the wsdl file and its included xsd's and JDeveloper created a java webservice from it. To change this the menu sequence is Tools, Preferences, Environment, Encoding and then select UTF-8 from the dropdown list.
Note that this is different from changing the project specific compiler encoding: right click on the project, choose Project Properties, and then choose Compiler, Character Encoding.
|