DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15698>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15698

array serializer/deserializer

           Summary: array serializer/deserializer
           Product: Axis
           Version: 1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi!
It is told that in this Axis version there is no need for getter/setter 
methods for serializing/deserializing objects (it is told that public 
attributes can be serialized/deserialized). 
However, I always ran into a problem if I didn't define these methods. I will 
introduce this via a little example:

public class A {
  public String attribute1;
  public String attribute2;
}

public class B {
  public String attribute3;
  public A[]    arrayByA;
  
  // I NEED THESE METHODS FOR MY APP. TO WORK PROPERLY
  public A[] getA(){
    return arrayByA;
  }
  public void setA(A[] arrayByA){
    this.arrayByA=arrayByA;
  }
}

in my wsdl I have the following entries:
   <beanMapping xmlns:ns="hu.regens/encodedTypes"
        qname="ns:A"            
        languageSpecificType="java:A"
   />

   <beanMapping xmlns:ns="hu.regens/encodedTypes"
        qname="ns:B"            
        languageSpecificType="java:B"
   />

   <typeMapping xmlns:ns="hu.regens/encodedTypes"
        qname="ns:ArrayOfA"
        type="java:A[]"         
        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"       
        deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
    />

In the way described above my app. works although i thought that there would 
be no need for getter/setter methods.
I don1t know wheter what I've written is a fault or not, you will decide that.

Thank you for letting me to report my bug.

Reply via email to