Two little issues with Axis(Java)/.Net web services interop
There are two issues with Axis(Java)/.Net interop that were discovered in a project I am involved in. We are using doc/literal web services as mentioned in my last entry about Java/.Net web services interop.
Empty arrays received from Java are interpreted as null objects on the .Net side. I have not fully researched why this happens, but we work around it by checking for null.
There is an issue in Axis 1.2RC3 when a bean contains an array of beans as one of its properties. Someone included a workaround in the bug report that I will show an example of below. Note that this issue is reported to be fixed, though I have not verified it in the Axis 1.2 final release yet.
Observe the last pair of get/set methods. These methods need to be provided for the workaround. Note that I included another property, this is because if the object only has one property, Axis will expose that property type in place of the bean in the method signatures (or at least it did in the case of array of beans).