cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-3092) WSDLDocumentation annotation not working on SEI implementation
Date Wed, 12 Jan 2011 15:28:45 GMT

     [ https://issues.apache.org/jira/browse/CXF-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-3092.
------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: NeedMoreInfo)
                   2.3.2

> WSDLDocumentation annotation not working on SEI implementation
> --------------------------------------------------------------
>
>                 Key: CXF-3092
>                 URL: https://issues.apache.org/jira/browse/CXF-3092
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.0
>            Reporter: Glen Mazza
>            Assignee: Daniel Kulp
>             Fix For: 2.3.2
>
>         Attachments: DoubleItJavaFirst.zip
>
>
> The WSDLDocumentation annotation works when placed on the service endpoint interface
but not the SEI implementation class.  
> Below works:
> package service;
> import javax.jws.WebService;
> import org.apache.cxf.annotations.WSDLDocumentation;
> import org.apache.cxf.annotations.WSDLDocumentationCollection;
> @WebService
> @WSDLDocumentationCollection(
>       {
>               @WSDLDocumentation("My portType documentation"),
>               @WSDLDocumentation(value = "My top level documentation",
>                                  placement = WSDLDocumentation.Placement.TOP),
>               @WSDLDocumentation(value = "My binding doc",
>                                  placement = WSDLDocumentation.Placement.BINDING)
>           }
>       )                        
> public interface DoubleItPortType {
>    public int doubleIt(int numberToDouble);
> }
> This does not:
> package service;
> import javax.jws.WebService;
> import org.apache.cxf.annotations.WSDLDocumentation;
> import org.apache.cxf.annotations.WSDLDocumentationCollection;
> @WebService(targetNamespace = "http://www.example.org/contract/DoubleIt",
>             endpointInterface = "service.DoubleItPortType",
>             serviceName = "DoubleItService",
>             portName = "DoubleItPort")
> @WSDLDocumentationCollection(
>       {
>               @WSDLDocumentation("My portType documentation"),
>               @WSDLDocumentation(value = "My top level documentation",
>                                  placement = WSDLDocumentation.Placement.TOP),
>               @WSDLDocumentation(value = "My binding doc",
>                                  placement = WSDLDocumentation.Placement.BINDING)
>           }
>       )                                   
> public class DoubleItPortTypeImpl implements DoubleItPortType {
>     public int doubleIt(int numberToDouble) {
>         return numberToDouble * 2;
>     }
> }

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


Mime
View raw message