My WSDL has type information, but to handle subtype objects (document-literal), I need runtime type information in the serialization of objects. .NET has the possibility of adding this; is it possible in Axis?

For example, I want to return an object of a subtype of the declared return type.

E.g.,
operation Vehicle getVehicle(String license_plate) may return an object of subclassTruck, which has additional properties. The client code would cast Vehicle to Truck.

Likewise, I want to pass an object of a subtype as a parameter.

E,g., when the client calls operation void registerVehicle(Vehicle vehicle), vehicle may actually be a Truck, and the server should be able to, if necessary, cast the argument to Truck.

Thus, the XML serialization must have the runtime class as one of its elements, presumably in the root element.

java2wsdl generates WSDL that does not have such type information.

I am aware of the all switch, but I don't think this gives the runtime information I need.

How can Axis handle this?

Thanks,

Joshua

Reply via email to