Please file a bug report.

On 10/31/05, Jay Glanville <[EMAIL PROTECTED]> wrote:
Hello all.

Found another issue that I'm hoping the community might help me with.

I have a web service.  Originally, it used an RPC/enc encoding.  I
recently changed it to Doc/wrapped.  After I did this, I noticed a
change in behaviour with respect to non-null, empty arrays.

With RPC, if my implementation of a operation returned an empty array,
like this:
   public XYZ[] getArray() throws AxisFault {
      return new XYZ[ 0 ];
   }
then client would receive a non-null, empty array:
   XYZ[] ret = binding.getArray()
   if ( ret == null ) {
      System.out.println( "null" );
   } else {
      System.out.println( ret.length );
   }
The output on the client would be:
   0
i.e.: a non-null, empty array

Now, if I change to Doc/Wrapped, re-generate my WSDL, re-run WSDL2Java
for the client side, and then re-run my client application, I get the
following output:
   null
i.e.: I get back a null object.  But that's not what the server sent!?!


Is this normal behaviour?  Is this expected?  Could there be something
configured wrong with my server-config.wsdd?  Is more information
needed?

Any help would be appreciated.

JDG

---
Jay Dickon Glanville

Reply via email to