I'm looking for advice on the best kind of client to generate for a service.  

The service has operations like create and update that take an abstract Vehicle 
type as a parameter.  What's actually expected is a Car, Truck, Airplane or 
Skateboard, all of which are Vehicles, but are not defined as types in the 
WSDL.  Only Vehicle is defined and it contains an unbounded <any> to hold the 
properties of Car, Truck, etc.  I do know the properties of Car, Truck, etc 
from external info.

So my question is, what kind of client would be best.  If I generate the client 
with wsdl2java, I don't know how to add the properties of the derived classes 
so that they will be marshaled correctly.  Is there a class that I can use that 
will allow me to specify and name and value such that simple elements would be 
marshaled into the request?

I suspect that I may need to use the Dispatch API and create the XML myself?  
Does that seem the best option?

Any feedback is appreciated.
Thanks
~jd

   

Reply via email to