axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <t...@macromedia.com>
Subject RE: WSDL Generation problem??
Date Thu, 15 Nov 2001 20:12:45 GMT
Jeff,
 
This should be fixed now.
 
--
Tom Jordahl
 
 
 -----Original Message-----
From: Jeff Brandt [mailto:jbrandt@comsi.com]
Sent: Wednesday, November 14, 2001 7:11 PM
To: axis-dev@xml.apache.org
Subject: WSDL Generation problem??


Does anyone know if the following is a bug in the WSDL generation or is this
a limitation of WSDL.
When two methods with the same name but different signatures are resident in
the .jws file the generated WSDL illustrates two operations with the same
name and same parameter list the second signature is not provided

Thanks,

Jeff

ATest1.jws file:
public class ATest1 {
  public int add(String s1)
  {
    return 1 ; 
  }

  public int add(int i1, int i2)
  {
    return i1 + i2; 
  }
  


  public int subtract(int i1, int i2)
  {
    return i1 - i2;
  }
}

Generated files:
/**
 * ATest1PortType.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis Wsdl2java emitter.
 */

public interface ATest1PortType extends java.rmi.Remote {
    public int add(int arg0, int arg1) throws java.rmi.RemoteException;
    public int add(int arg0, int arg1) throws java.rmi.RemoteException;
    public int subtract(int arg0, int arg1) throws java.rmi.RemoteException;
}


WSDL:
<?xml version="1.0" encoding="UTF-8" ?> 
- <definitions
targetNamespace="http://localhost:7001/axis/services/ATest1.jws"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:serviceNS="http://localhost:7001/axis/services/ATest1.jws"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
- <message name="addRequest"> 
<part name="arg0" type="xsd:int" /> 
<part name="arg1" type="xsd:int" /> 
</message> 
- <message name="subtractResponse"> 
<part name="subtractResult" type="xsd:int" /> 
</message> 
- <message name="subtractRequest"> 
<part name="arg0" type="xsd:int" /> 
<part name="arg1" type="xsd:int" /> 
</message> 
- <message name="addResponse"> 
<part name="addResult" type="xsd:int" /> 
</message> 
- <portType name="ATest1PortType"> 
- <operation name="add"> 
<input message="serviceNS:addRequest" /> 
<output message="serviceNS:addResponse" /> 
</operation> 
- <operation name="add"> 
<input message="serviceNS:addRequest" /> 
<output message="serviceNS:addResponse" /> 
</operation> 
- <operation name="subtract"> 
<input message="serviceNS:subtractRequest" /> 
<output message="serviceNS:subtractResponse" /> 
</operation> 
</portType> 
- <binding name="ATest1SoapBinding" type="serviceNS:ATest1PortType"> 
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"
/> 
- <operation name="add"> 
<soap:operation soapAction="" style="rpc" /> 
- <input> 
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="" use="encoded" /> 
</input> 
- <output> 
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="" use="encoded" /> 
</output> 
</operation> 
- <operation name="add"> 
<soap:operation soapAction="" style="rpc" /> 
- <input> 
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="" use="encoded" /> 
</input> 
- <output> 
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="" use="encoded" /> 
</output> 
</operation> 
- <operation name="subtract"> 
<soap:operation soapAction="" style="rpc" /> 
- <input> 
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="" use="encoded" /> 
</input> 
- <output> 
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="" use="encoded" /> 
</output> 
</operation> 
</binding> 
- <service name="ATest1"> 
- <port binding="serviceNS:ATest1SoapBinding" name="ATest1Port"> 
<soap:address location="http://localhost:7001/axis/services/ATest1.jws" /> 
</port> 
</service> 
</definitions>






Jeffrey L. Brandt
Communication Software, Inc.
T 415.945.0362
F 415.354.3337 


Mime
View raw message