[ 
https://issues.apache.org/jira/browse/OPENEJB-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704650#action_12704650
 ] 

Jean-Louis MONTEIRO commented on OPENEJB-1020:
----------------------------------------------

Hi,

I've done some tests around this topic.
I checked over specifications first and I've seen it's a JAX-WS 2.1 feature.

By default, the runtime just examines the exact classes referenced from the SEI 
interface to figure out what classes need to be bound into the JAXB context. A 
way to change it is to use the JAXB annotation @XmlSeeAlso where it's needed.

For example:
@WebService
public interface BaseService {
    String echo(String toEcho);
}
@WebService
public interface HelloWorld extends BaseService {
    String sayHi(String text);
}
@WebService(serviceName = "HelloWorld")
@XmlSeeAlso(value = {BaseService.class})
public class HelloWorldImpl implements HelloWorld {

    public String sayHi(String text) {
        return "Hello " + text;
    }

    public String echo(String toEcho) {
        return toEcho;
    }
   
}

But the case is that OpenEJB embeds CXF 2.0.x which does not support JAX-WS 2.1
To support interface inheritance, we have to migrate to CXF 2.1 (min)

I've tested it with CXF (standalone) and it works fine.
But, we can not change CXF version out of the box in OpenEJB because API has 
been modified.

I'm working with a colleague to get OpenEJB compiling and running with CXF 
2.2.1 (lastest version available).

First results are expected by the end of this week.

Kind regards,
Jean-Louis


> Inheritance not supported in JAX-WS endpoint interfaces exposed via CXF
> -----------------------------------------------------------------------
>
>                 Key: OPENEJB-1020
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1020
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: integration, webservices
>    Affects Versions: 3.0-beta-1, 3.0-beta-2, 3.0, 3.1
>            Reporter: David Blevins
>            Assignee: Jonathan Gallimore
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to