users@jaxb.java.net

_at_XmlJavaTypeAdapter in class interface. Is it possible?

From: Cencio1980 <cencio1980_at_gmail.com>
Date: Mon, 17 Jan 2011 12:43:10 +0100

Hi all,

i'm trying to annotate this method:

@WebMethod
public Hashtable<IDSoggetto,PortaApplicativa>
getPorteApplicative_SoggettiVirtuali(
  @WebParam(name = "idPA", targetNamespace = "
http://ws.management.openspcoop.org")
  IDPortaApplicativa idPA) throws
DriverConfigurazioneException,DriverConfigurazioneNotFound;

but jaxb fails to marshall the Hashtable (response message is empty even if
the hashtable isn't), so i made an Adapter and tryied to annotate like this:

@WebMethod
public
 @XmlJavaTypeAdapter(PorteApplicative2Hashtable .class)
 Hashtable<IDSoggetto,PortaApplicativa>
getPorteApplicative_SoggettiVirtuali(
  @WebParam(name = "idPA", targetNamespace = "
http://ws.management.openspcoop.org")
  IDPortaApplicativa idPA) throws
DriverConfigurazioneException,DriverConfigurazioneNotFound;

But seems that the annotation is ignored.... did i make some syntax error?

Thanks,
Lorenzo