axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <>
Subject Re: WSDL2Java - overloaded method problem
Date Fri, 05 Apr 2002 16:10:34 GMT
In order to get overloaded operations to work, you must distinguish them in
the binding.  If you notice, there are two identical <wsdl:operation name
="getContactCollection"> clauses in the binding.  They cannot be identical.
That's bad WSDL (which, unfortunately, WSDL2Java doesn't recognize).  What
you have to do is name the input and output clauses in the portType and
binding so they can make the correllation.  Otherwise the binding has no
way to know which bindingOperation refers to which portType operation.

In other words, the portType operations could look like:

      <wsdl:operation name="getContactCollection" parameterOrder="in0">
         <wsdl:input name="gcc1" message
         <wsdl:output name="gcc1" message
      <wsdl:operation name="getContactCollection" parameterOrder="in0">
         <wsdl:input name="gcc2" message
         <wsdl:output name="gcc2" message

And the binding operations would similarly name the input and output

Russell Butek

"David L. Cole" <> on 04/05/2002 09:53:22 AM

Please respond to

Subject:    WSDL2Java - overloaded method problem

(See attached file:

Hi all,

I am getting a duplicate method declaration in my generated stubs as a
result of an
overloaded method. I have attached all related files including the stubs,
wsdl, and interface
for my webservice. I have seen alot of mail related to this problem...I
thought you had fixed this problem

While on the stub topic, has any thought gone into providing an option for
specifying some
sort of properties file (or maybe going off of the wsdd) which allows the
specification of typemappings
that could be deployed on the client and allow the stubs to auto-gen the
typemapping registrations
from the file?

Any comments on this matter?

David Cole

View raw message