I'm writing a service that I'm trying to integrate into a legacy
system bit by bit. In the old system, a "request ID" is a String of
the format "rqYYYYMMDDHHMMSSXXX", but in the new system, a request ID
is simply a row identifier (a Long).

What I'd like to do is use the power of polymorphism to keep my
service API clean and sane:

   public Request getRequestByID(String legacyRequestID) {
       // ...
   }

   public Request getRequestByID(Long requestID) {
       // ...
   }

But when I try this, java2wsdl (Axis1) pukes with the following fault:

   Attempted to write duplicate schema element :
{http://pkgbuild.amazon.com/PBQS}getRequestByID

...which makes me sad. :-(   <-- See?

Is this a WSDL 1.0 restriction or a deficiency in java2wsdl? Will such
use of polymorphism be possible under Axis2?

-dan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to