2 Replies Latest reply on Jan 23, 2007 12:40 PM by William Power

    wstools Duplicate operation with name ...

    William Power Newbie

      Does anyone know if wstools can process a .wsdl file with overloaded operations?

        • 1. Re: wstools Duplicate operation with name ...
          William Power Newbie


          I am getting the following error while trying to generate JbossWS artifacts from a .wsdl file. The .wsdl file is from an existing Axis based application, and I am trying to migrate it to JBoss.

          Does anyone know if the problem is with the .wsdl or wstools or the settings passed to wstools.

          Thanks.




          Running JBossWS wstools for [PSXAPI_r06_03]
          directory: C:\jboss-4.0.5.GA\bin
          command: cmd.exe /C wstools.bat -config C:\DOCUME~1\POWER~1.WIL\LOCALS~1\Temp\wstools-config18085.xml -dest C:\jide\Test\src
          ========================================================================="
          .
          WSTools Environment
          .
          JBOSS_HOME: C:\jboss-4.0.5.GA\bin\\..
          .
          JAVA: C:\Program Files\Java\jdk1.5.0_09\\bin\java
          .
          JAVA_OPTS:
          .
          ========================================================================="
          .
          Exception in thread "main" java.lang.IllegalArgumentException: Duplicate operation with name=delete, found in portType '{http://www.testnet.com/test/intf}PSXAPI/r06_03SoapBinding'.
          at com.ibm.wsdl.BindingImpl.getBindingOperation(BindingImpl.java:224)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.messagePartToElementName(WSDL11Reader.java:652)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processOperationInput(WSDL11Reader.java:487)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortTypeOperations(WSDL11Reader.java:460)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:446)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:728)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1071)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1054)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1027)
          at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:119)
          at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145)
          at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:120)
          at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:324)
          at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
          at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
          at org.jboss.ws.tools.WSTools.main(WSTools.java:61)

          • 2. Re: wstools Duplicate operation with name ...
            William Power Newbie

            .wsdl file

            <?xml version="1.0" encoding="UTF-8"?>
            <!--"V06.01.02R000""Patch 1"-->
            <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://www.testnet.com/test/intf" xmlns:intf="http://www.testnet.com/test/intf" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://www.testnet.com/test/model" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.testnet.com/test/intf">
            <wsdl:types>










































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































            <element name="callParamFilterProfileId" nillable="true" type="xsd:s