axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Haddad" <>
Subject RE: WSDL4J bug
Date Tue, 22 Jan 2002 20:28:32 GMT
Russell - 

Is the WSDL4J bug you reported the root cause of errors when emitting
overloaded methods using Wsdl2Java?

Attached is an example WSDL file and the resultant SoapBindingStub which
does not compile due to an error in the parameter definitions?

The main snippet is the following:
   <wsdl:message name="getFlightInfoResponse1">
      <wsdl:part type="tns2:FlightInfo"/>

   <wsdl:message name="getFlightInfoResponse">
      <wsdl:part type="tns2:FlightInfo"/>

   <wsdl:message name="getFlightInfoRequest">

   <wsdl:message name="getFlightInfoRequest1">
      <wsdl:part name="idRef" type="xsd:string"/>
      <wsdl:operation name="getFlightInfo">
         <wsdl:input message="intf:getFlightInfoRequest"/>
         <wsdl:output message="intf:getFlightInfoResponse"/>

      <wsdl:operation name="getFlightInfo" parameterOrder="idRef">
         <wsdl:input message="intf:getFlightInfoRequest1"/>
         <wsdl:output message="intf:getFlightInfoResponse1"/>

In the SoapBindingStub class, the overloaded method is not being emitted

    public stub.FlightInfo getFlightInfo(java.lang.String idRef) throws
java.rmi.RemoteException{) is being declared twice instead of once and
an additional declaration with no parameters.

Am I doing something wrong?


Chris Haddad
Cobia Communications  - XML and Web Service Solutions
678 431 1656

-----Original Message-----
From: Russell Butek [] 
Sent: Tuesday, January 22, 2002 3:06 PM
To: Matthew Duftler
Subject: WSDL4J bug

Matt, I think I sent you this first bug before, but I have another
variation, now...

1.  When the stanzas are in reverse order -
<binding...><portType...><message...> -  a call to
().iterator() will return an iterator which returns all operations
This wsdl and test program show the problem:  (See attached file:
duplicate.wsdl), (See attached file:

2.  A similar problem is a WSDL with stanzas in the normal order, but
overloaded operations; in other words, a portType and binding with two
operations called "method" but with different input/output messages.  A
call to binding.getBindingOperations() returns the two
But a call to portType.getOperations() returns one of the operations
and I never see the other one.  Here's a wsdl and test for this
(See attached file: overload.wsdl), (See attached file:

Russell Butek

View raw message