wsgen : expose webmethod with interfaces as result and parameter types
I would like to expose an existing ejb as a Web Service. I am using wsgen to generate the needed artifacts.
The Web Method header is the following :
public TroubleTicketKey createTroubleTicketByValue(TroubleTicketValue value)
where the return type, TroubleTicketKey is an interface AND the parameter type, TroubleTicketValue is also an interface.
Looking throughout the forum, I've found many topics relating to this issue :
So, I have tried many solutions but in each case, I could not handle with the two interfaces at the same time. In fact :
public TroubleTicketKey createTroubleTicketByValue(TroubleTicketValue value) throws ...
The "XmlJavaTypeAdapter" can only be added once, so I can solve the problem of the parameter but not the one of the return value.
I have also tried with @XmlElement(type=TroubleTicketKeyImpl.class) whitout result...
I do not see tha right solution to such a problem, I would appreciate to have any help on it.
Thanks in advance,