Hello guys,
I'm using XFire 1.2.6 and I'm having some problems with Java Generics.
If I have a Collection of Tasks (returning from a method) it works just
fine.
But If I have a VO that has a collection using Generic type,
then it just doesn't work.
I tried using Jsr181, XMLBeans and XFire default ServiceFactory.
My VO looks like this:
public class Search<OBJECT> {
private List<OBJECT> data;
private SearchPager page;
public Search() {
super();
}
public List<OBJECT> getData() {
return this.data;
}
public void setData(List<OBJECT> data) {
this.data = data;
}
public SearchPager getPage() {
return this.page;
}
public void setPage(SearchPager page) {
this.page = page;
}
}
Using XMLBeans it seems to work fine for Generics, but then
it I can't invoke the proper methods.
Let's say my service has a insert() method
but when I call it from a Java client. it always invokes the update() method
on the server.
I just don't understand it.
I tried to debug, added log info, but always update().
Anyways,
solving the generics issue on a VO is already a big thing to me.
If I create a VO with a hardcoded generic on my getData() then it works just
fine.
The problem is just passing Generic types from extended or new classes I
think.
Any suggestions?
Regards,
--
João Kreuzberg