简体   繁体   中英

wsdl2java generated class names

When I'm using wsdl2java tool to generate java classes based on wsdl file I get two files for each class: first - pure virtual class file, second - class file with implementation, which have Impl postfix in classname.

So, for example if I specify in wsdl message with name ServerMessage, then ServerMessage.java will be virtual and ServerMessageImpl.java will consist needed thing.

How should I use resulting files in non-generated code? I just want to use classes as specified in my wsdl file, but with such generation I'm forced to write Impl postfix after each class name. Am I misunderstanding something?

Solved this issue. Command line argument -uw did the trick.

unwrap - This will select between wrapped and unwrapped during code generation. Default is set to false. Maps to the -uw option of the command line tool.

http://axis.apache.org/axis2/java/core/tools/CodegenToolReference.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM