John Delaney wrote:

Fabricio

It is entirely possible. You have to make sure that you define the
interface properly on both sides. Use the xsd:AnyType to describe you
java object. The only things that doesn't work completely are the
signatures of the methods in your web service, get used to giving each
method a unique name.

Yes, it's possible, but do you really want to? Usually, the main motivation for using web services is interoperability with other platforms. You want your web service to be able to service requests from .NET clients, Perl clients, COBOL clients, etc. The service's WSDL is a contract; it should completely describe all messages that might be sent, and using xsd:anyType makes your contract useless to your clients. (Yes, I know .NET does it all the time; the result is that many .NET services can be consumed only by .NET clients.) If you really need to pass around generic Java objects, RMI is a better choice than web services.

Mike

Reply via email to