One idea is to make the method that services the request actually be a 'dispatcher' - that uses Java reflection to invoke the correct method on the correct handler object based on the input parameters.
Furthermore - depending on the scope of your implementation - if you are not 'publishing' your web services to the whole wide world, and are using web services for internal system communications, this technique can save you huge amounts of headaches related to dispersing WSDL files, keeping them in sync etc. Regards... Milind Gadre VP Product Development ecPlatforms, Inc 901 Mariner's Island Blvd, Suite 565 San Mateo, CA 94404 C: 510.919.0596 E: [EMAIL PROTECTED] ----- Original Message ----- From: "Chris Means" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 12, 2003 11:56 AM Subject: RE: Polymorphism in Web Services (badly need help here) > FWIW: > > Microsoft's MapPoint Web Service uses a little polymorphism. > (http://staging.mappoint.net/standard-30/MapPoint.wsdl) > > Though it didn't run without problems, the Axis v1.0 WSDL2java did properly > create the mappings for MapView and it's descendants, though they're > relatively simple objects. > > > -----Original Message----- > > From: K P [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 11, 2003 2:19 PM > > To: [EMAIL PROTECTED] > > Subject: Polymorphism in Web Services (badly need help here) > > > > > > I am trying to understand how we can use polymorphic objects in web > > services. Is there any standard way to define sub-types in the > > WSDL? If you > > manually add complex types to the types element in the WSDL, will the > > clients be able to use these explicitly non-referenced sub-types? > > > > I have tried to use Axis wsdltojava, it did not generate client code for > > such non-referenced sub-types. Is this just a local problem with the Axis > > tool or is it problem accross Java based and non-Java based SOAP > > implementations? > > > > What are the guidelines for using Polymorphism in Web Services? > > How do you > > use lists like ArrayLists and Maps without such basic support for > > Poloymorphism? > > > > Any information in this area will be highly appreciated. > > > > Thanks a lot, > > > > Kiran. > > > > _________________________________________________________________ > > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > > > > >
