Hello,

Using java2wsdl to generate the WSDL from java server side classes, how can I force the registration of a serializer/deserializer for a bean that does not appear directly in the method arguments, e.g.:

public A foo(A a)

where A is a bean which can contain another bean B and also a bean array B[] but it's not typed (e.g. it's defined as an Object):

A
{
  ...
  Object o;  // At run-time this can be B, B[] or other things.
  ...
}

The problem is that at run-time the server complains that there is no deserializer for B which makes sense because java2wsdl has never seen B anywhere in the method signatures.

The work-around so far has been to add a dummy method that has both B and B[] as arguments, but there's gotta be a nicer way to do it.

Thank you for your help.

--
Tim



Reply via email to