Hi everybody
i have tried to migrate from axis 1.2.1 to axis 1.3
it seems that the ArraySerializer has changed between this 2 versions
and it caused some problems with inheritance:
If you ve got for example: an abstract class animal and a class dog who extends animal
and an Array of animal
so in this way :
it seems that the ArraySerializer has changed between this 2 versions
and it caused some problems with inheritance:
If you ve got for example: an abstract class animal and a class dog who extends animal
and an Array of animal
so in this way :
public abstract class Animal{
private String nom;
private String nom;
......
}
public class Dog extends Animal{
private String color;
........
........
}
your webservice expose this method below for example:
public Animal [] getListOfAnimals(){
Animal [] array_Animals=new Animals[1];
Dog doggy= new doggy("pluto","black");
array_Animals[0]=doggy;
return array_Animals;
}
Dog doggy= new doggy("pluto","black");
array_Animals[0]=doggy;
return array_Animals;
}
In axis 1.3 when you call getListOfAnimals(), you lost the informations of Dog so you receive to your client
only an array which cont ains Animal type Object but not Dog objects and the client failed : instantiation exception....
only an array which cont ains Animal type Object but not Dog objects and the client failed : instantiation exception....
In axis 1.2.1 you still have the information that the function getListOfAnimals() return an array of Animal which contains
Dog objects.
Dog objects.
It happens only with array, i have tried to do other examples in many ways i have got the same problems...
I use document wrapped/literal.
Has someone got the same problems ?any explanations? is it a bugs?
Has someone got the same problems ?any explanations? is it a bugs?
Thank you.
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.
