10 Haziran 2011 Cuma

wsimport removes underscores while generating java classes from wsdl

Actually, jaxb is responsible for this behaviour. You should use a binding file to change default behaviour.

Here is the binding file ;


<?xml version='1.0' encoding='UTF-8'?>
<jaxb:bindings
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
    version="2.1">
    <jaxb:globalBindings underscoreBinding="asCharInWord"/>
</jaxb:bindings>







You should  call wsimport such as ;

wsimport -b bindingFile.xml wsdlLocation