java - WebService Client - Replace Umlaut in class name -
i got webservice description external source , have build interface it.
not problem, got working. webservice client automatically generated using eclipse , axis.
but in description have this:
<xs:complextype name="type"> <xs:sequence> <xs:element minoccurs="0" name="Übersicht"> ... </xs:element> </xs:sequence> </xs:complextype>
as can see there Ü umlaut in element name.
when i'm generating webservice client in eclipse, generate java class named type_Übersicht.java
. while not problem compiler, violates our code style rules. class in whole workspace special char in it.
so, question:
can tell eclipse webservice generator map given names or single characters else? unfortunately changing description not option...
you can modify generated classes either using hints in xsd or using binding file although i'm not familiar getting binding files working eclipse generator (i use maven plugin). try editing xsd/wsdl this
<xs:complextype name="type"> <xs:sequence> <xs:element minoccurs="0" name="Übersicht"> <xs:annotation> <xs:appinfo> <jaxb:class name="ubersicht"/> </xs:appinfo> </xs:annotation> </xs:element> </xs:sequence> </xs:complextype>
Comments
Post a Comment