JAXB can't handle interfaces. What you want to do is configure your service
to use the Aegis databinding library from XFire instead:
http://cwiki.apache.org/CXF20DOC/aegis-databinding.html
Aegis will handle just about any datatypes you throw at it. Hope that helps,
- Dan
On 7/12/07, Marc Baumgartner <[EMAIL PROTECTED]> wrote:
Hi,
in Xfire it is possible to define a complex result object from a web
service as an interface like this:
public interface Greeting {
public abstract void setMessage(String msg);
public abstract String getMessage();
}
@WebService
public interface HelloWorldService {
@WebMethod
@WebResult(name="Greeting")
public List<hello.impl.GreetingImpl> getGreeting(String name);
@WebMethod
public String sayHello(String name);
}
With CXF a signature like this causes an error. It seems that JAXB can not
handle the result interfaces. Is it possible to "tell" JAXB to accept the
interfaces? Can I use another bindung lib? How do i configure it?
Regards,
Marc
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog