> -----Original Message-----
> From: Ajanta Phatak [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 10, 2003 3:45 PM
> To: [EMAIL PROTECTED]
> Subject: Interfaces as parameters to web service functions?
>
>
> Newbie question...
>
> Does it make sense to use interfaces as parameters to
> web service functions? Both client and server ends are
> going to be Java, so I was wondering whether I can use
> interfaces or do I have to use JavaBeans.
I've spent a fair amount of time researching this question. Feedback I've received indicates that this is NOT currently supported by Axis. Also, it doesn't seem to be very high on the priority list of the Axis developers.
I particularly want this capability added to Java2WSDL. One way to do this would be to modify it to read a property file where the property names are interface name and the property values are concrete classes that you want to use.
Without this capability, you could consider writing a corresponding class with methods that take and return concrete types. Make that class delegate all its methods to methods in the original class that uses interface types. Run Java2WSDL on the new class instead of the original one. This is a real hassle, but I think it will work.
***********************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
************************************************************************************
