cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3722) Generic interface and Implementation
Date Thu, 28 Jun 2012 09:03:43 GMT

    [ https://issues.apache.org/jira/browse/CXF-3722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402943#comment-13402943
] 

Sergey Beryozkin commented on CXF-3722:
---------------------------------------

I've worked with your original example without changing anything but adding the adapter annotation
to NamedObject.
I do not see how that makes NamedObject being aware of the individual POJOs, JAXB needs to
have an adapter available to
get Interfaces managed. 
                
> Generic interface and Implementation
> ------------------------------------
>
>                 Key: CXF-3722
>                 URL: https://issues.apache.org/jira/browse/CXF-3722
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: CXF 2.2.6
> JAVA 6 
> Windows XP
> Tomcat 6 
> Code First
>            Reporter: Deboschère Tony
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: Invalid
>
>
> I ve createad a Generic interface, let say IGenericInterface<TYPE extends MyAbstracTypeOne,
TYPE2 extends MyAbstractTypeTwo>
> In this interface  are some méthode like : 
> public TYPE getTypeFromType2(TYPE2);
> In another interface I extends IGenericInterface
> and add some specific methods 
> ex : 
> @WebService
> ISpecificInterface extends IgenericInterface<MySubTypeOne, MySubTypeTwo> {
> @WebMethod
> public MySubTypeOne getTest();
> }
> When I implement ISpecificInterface in an implementation class, then add the @Webservice
@WebResult and other @WebParam  and launch my server 
> I do see a web service with two methods in the wsdl
> getTest and getTypeFromType2.
> But the second method returns xml corresponding to the abstractType MyAbstracTypeOne
and not MySubTypeOne
> PS : I launch the webservice serverside via : 
> Object webServiceImpl = webServiceClass.newInstance();
> Endpoint endpoint = Endpoint.create(webServiceImpl);
> endpoint.publish("/" + name);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message