我尝试通过此命令行从WSDL文件生成类:
java -cp ".\*" org.apache.axis.wsdl.WSDL2Java Tadm.wsdl
但我有这个例外:
java.lang.IllegalArgumentException: Duplicate operation with name=myOperation, found in portType '{http://www.....}ServiceSoap'.
at com.ibm.wsdl.PortTypeImpl.getOperation(PortTypeImpl.java:198)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolTable.java:2515)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:744)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:745)
我知道最新版本的WSDL规范不支持重载操作,因此是否有技术或功能支持重载操作从WSDL文件生成类没有任何操作重命名或修改