You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ji...@apache.org on 2004/04/12 14:42:43 UTC
[jira] Closed: (AXIS-590) getters and setters needed for public arrays in JavaBeans
Message:
The following issue has been closed.
Resolver: Davanum Srinivas
Date: Mon, 12 Apr 2004 5:41 AM
Fixed yesterday. Reopen bug if necessary.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-590
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-590
Summary: getters and setters needed for public arrays in JavaBeans
Type: Bug
Status: Closed
Resolution: FIXED
Project: Axis
Components:
Serialization/Deserialization
Fix Fors:
current (nightly)
Versions:
1.0
Assignee:
Reporter: Pop Mariuas Lucian
Created: Sat, 28 Dec 2002 8:30 AM
Updated: Mon, 12 Apr 2004 5:41 AM
Environment: Operating System: Windows XP
Platform: PC
Description:
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.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira