Tuesday, August 25, 2015

Error Loading WSDL : Characters larger than 4 bytes are not supported: byte 0x94 implies a length of more than 4 bytes


SoapUI - Error While loading WSDL:
org.apache.xmlbeans.XmlException:java.io.CharConversionException: Characters larger than 4 bytes are not supported: byte 0x94 implies a length of more than 4 bytes
   
 
Usually we face this issue when we try to load WSDL without an XML declaration with encoding specified, and that SoapUI interprets your WSDL as UTF-8. This happens from SoapUI 4.6.4 but where as SoapUI 4.6.3 used the default encoding.

We can solve this by following the below steps: 
  1. Open the "SoapUI-4.6.4.vmoptions" file with text editor located in "bin" directory of SoapUI installed location.

    NOTE : If we have any permission issues while editing the file then just copy the file to desktop and do the changes and paste it back to bin directory.

  2. Add this line at end of the file: 
    -Dfile.encoding=UTF8
  3. Save the file and restart the SoapUI
  4. Try again to load the WSDL in SoapUI.  

Hope it works for you :-)



1 comment:

back to top