cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-3092) WSDLDocumentation annotation not working on SEI implementation
Date Tue, 11 Jan 2011 22:17:45 GMT

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

Glen Mazza updated CXF-3092:
----------------------------

    Attachment: DoubleItJavaFirst.zip

Apologies for not attaching a quick OOTB example.  OK, very simple example (hopefully good
enough compared to trying to get test case to fail):

1.) Extract the ZIP into a directory.
2.) In the DoubleItJavaFirst/service-war/src/main/java/service folder, observe that DoubleItPortType.java
has no documentation annotation and DoubleItPortTypeImpl.java *does* have a documentation
annotation.
3.) From the DoubleItJavaFirst folder, type "mvn clean install"
4.) Look in target/generated/wsdl, and confirm *no* WSDL Documentation comments.  (Therefore
3092 broken).
5.) Move (not copy) the @WSDLDocumentationCollection from DoubleItPortTypeImpl.java to DoubleItPortType.java.
6.) Run mvn clean install again.
4.) Look in target/generated/wsdl again, and confirm DoubleItPortType.wsdl has one document
element and DoubleItPortTypeImpl.wsdl has another, but there is *no* WSDL Documentation comment
on the binding element.  (Therefore 3093 broken).



> 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: NeedMoreInfo
>
>         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