我正在尝试使用来自 Java 的 wsdl 在 .net 中调用 webservice。我正在尝试在 Eclipse Galileo SR2 中使用 Apache Axis 2 创建客户端存根。Netbean 6.9 也有同样的例外。
我在 web 服务中重载了“AddOrgService”方法。看起来它正在制造一个问题。
有什么解决办法?
但我得到以下异常:
IWAB0399E Error in generating Java from WSDL: java.lang.IllegalArgumentException: Duplicate
operation with name=AddOrgService, found in portType
'{http://ensim.com/unifyws/Exchange2K7WS}ExchangeManagerSoap'.
java.lang.IllegalArgumentException: Duplicate operation with name=AddOrgService, found
in portType '{http://ensim.com/unifyws/Exchange2K7WS}ExchangeManagerSoap'.
at com.ibm.wsdl.PortTypeImpl.getOperation(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingOperation(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseBinding(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
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(Unknown Source)