Hi
I encounter problems with int[] and Integer[] in the
java binding.
Those two are mapped to the same ArrayOf_xsd_int
schema type, which makes them undistinguishable from
the WSDL perspective. So how can one know if the
WSIFInputMessage should contain a int[] or a
Integer[], solely based upon the information given
in the WSDL ?
If there is a mismatch, WSIF complains rightly that it
cannot find a method with matching argument types.
Of course, I could create different schema types
for each java type, and use the typemap embedded in
the java binding to decide whih operation takes
which type of object. But this will make my client
code dependent of the binding, which does not follow
the WSIF design.
IMHO, this should be automatically handled by the
java provider. Indeed, int and Integer are already
interchangeable, thanks to the reflection API that
lets you call 'void foo(int)' with an Integer argument
(invoke takes an array of Objects as arg). So WSIF
should be augmented and extend this scheme to arrays.
Any thoughts on this ?
/jog