Hello all,

 

As I said in previous messages, I want to create a web service that could receive any types and dynamically extracts the contents of those types. Thus, I saw in java Object a solution for my problem. Hence, I created the web service that receives and returns the java Object:

 

public Object myMethod(Object o) throws Exception{

            …

}

 

Now, my problem is: How can I create, in WSDD and in the client, the Mapping to serialize my object, once I don’t know specifically what type I’m receiving and returning?

 

Some times I can receive a bean for a person (name, age, weight), other times I can receive a bean about address (street, state, country), or a bean about cars (color, model, vendor)… I don’t know previously the type that my web service will receives. If I knew I could mount my WSDD with no problems (passing the specific beanMapping) and in my client too (mounting my call.registerTypeMapping(specif class information and (De) BeanSerializerFactory).

 

My doubt is how I must construct my WSDD and my client to make my web service works. Or anyone could see another solution for my problem? Instead of java Objects. Or this is an unreachable web service?

 

Thanks a lot for any help,

 

Fabrício.

Reply via email to