re: returning arrays of beans

2002-07-17 Thread James Black

Hello,
  I can't get my program to work when I try to send an array of objects,
but when I turn that array into an xml file it works.
  It dawned on me that my problem may be that some of the attributes are
null, so I am working on trying to correct that.

  I have an object that has an attribute that is an array of objects.

public class beanA {
  private beanB[] attributeA;
  private int[] attributeB;
}

  If SOAP can't handle null values how do I set the attribute so I can
transfer it back to the client?

  Thank you.




re: returning arrays of beans

2002-07-17 Thread Heitzso

just confirming that bean with attribute of array of beans
can be handled correctly by axis, though will be serialized/de.
via multiref unless that is toggled false.  Some attributes
of my beans have been null and that's worked, but I've never
had null bean array elements.



On Wed, 2002-07-17 at 10:22, James Black wrote:
 Hello,
   I can't get my program to work when I try to send an array of objects,
 but when I turn that array into an xml file it works.
   It dawned on me that my problem may be that some of the attributes are
 null, so I am working on trying to correct that.
 
   I have an object that has an attribute that is an array of objects.
 
 public class beanA {
   private beanB[] attributeA;
   private int[] attributeB;
 }
 
   If SOAP can't handle null values how do I set the attribute so I can
 transfer it back to the client?
 
   Thank you.
 





Re: returning arrays of beans

2002-07-17 Thread James Black

Heitzso wrote:

 just confirming that bean with attribute of array of beans
 can be handled correctly by axis, though will be serialized/de.
 via multiref unless that is toggled false.  Some attributes
 of my beans have been null and that's worked, but I've never
 had null bean array elements.

  I use java2wsdl to create the appropriate files for my web services.  For
some reason I haven't been able to get it to return an array of beans, or even
an array of ints, but I can convert everything into an XML string and it
works.
  I have some attributes that I set to null, and that may have been part of
the problem, so I will be testing it out today.