You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jacob Carter (JIRA)" <ji...@apache.org> on 2010/11/16 12:23:13 UTC

[jira] Created: (CXF-3128) @WebMethod(exclude=true) is not being honoured when generating WSDL

@WebMethod(exclude=true) is not being honoured when generating WSDL
-------------------------------------------------------------------

                 Key: CXF-3128
                 URL: https://issues.apache.org/jira/browse/CXF-3128
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.3.0
            Reporter: Jacob Carter


I am attempting to prevent a public method appearing in the generated WSDL file from my Java source code.  I have annotated the method with @WebMethod(exclude=true), however it is still appearing in the WSDL file.

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


[jira] Commented: (CXF-3128) @WebMethod(exclude=true) is not being honoured when generating WSDL

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932610#action_12932610 ] 

Daniel Kulp commented on CXF-3128:
----------------------------------


Actually, this turns out to be correct.   I  checked the JAX-WS spec and it specifically states that the methods on the SEI:

• Any of its methods MAY carry a javax.jws.WebMethod annotation (see 7.11.2).
• javax.jws.WebMethod if used, MUST NOT have the exclude element set to true.

Thus, it would be a violation of the spec to have the exclude=true on the SEI interface method.   Thus, it must be in the implementation method.



> @WebMethod(exclude=true) is not being honoured when generating WSDL
> -------------------------------------------------------------------
>
>                 Key: CXF-3128
>                 URL: https://issues.apache.org/jira/browse/CXF-3128
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Jacob Carter
>            Assignee: Daniel Kulp
>
> I am attempting to prevent a public method appearing in the generated WSDL file from my Java source code.  I have annotated the method with @WebMethod(exclude=true), however it is still appearing in the WSDL file.

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


[jira] Resolved: (CXF-3128) @WebMethod(exclude=true) is not being honoured when generating WSDL

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-3128.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.1

Added checks for  this in the code and properly throw an exception rather than just ignore it.



> @WebMethod(exclude=true) is not being honoured when generating WSDL
> -------------------------------------------------------------------
>
>                 Key: CXF-3128
>                 URL: https://issues.apache.org/jira/browse/CXF-3128
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Jacob Carter
>            Assignee: Daniel Kulp
>             Fix For: 2.3.1
>
>
> I am attempting to prevent a public method appearing in the generated WSDL file from my Java source code.  I have annotated the method with @WebMethod(exclude=true), however it is still appearing in the WSDL file.

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


[jira] Assigned: (CXF-3128) @WebMethod(exclude=true) is not being honoured when generating WSDL

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-3128:
--------------------------------

    Assignee: Daniel Kulp

> @WebMethod(exclude=true) is not being honoured when generating WSDL
> -------------------------------------------------------------------
>
>                 Key: CXF-3128
>                 URL: https://issues.apache.org/jira/browse/CXF-3128
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Jacob Carter
>            Assignee: Daniel Kulp
>
> I am attempting to prevent a public method appearing in the generated WSDL file from my Java source code.  I have annotated the method with @WebMethod(exclude=true), however it is still appearing in the WSDL file.

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


[jira] Commented: (CXF-3128) @WebMethod(exclude=true) is not being honoured when generating WSDL

Posted by "Jacob Carter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932432#action_12932432 ] 

Jacob Carter commented on CXF-3128:
-----------------------------------

I originally just had the @WebMethod(exclude=true) declared in the SEI, and this meant that the method did get included within the generated WSDL.

Having also declared @WebMethod(exclude=true) within the implementation class, the method is no longer included within the generated WSDL.

Is this correct behaviour?

> @WebMethod(exclude=true) is not being honoured when generating WSDL
> -------------------------------------------------------------------
>
>                 Key: CXF-3128
>                 URL: https://issues.apache.org/jira/browse/CXF-3128
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Jacob Carter
>
> I am attempting to prevent a public method appearing in the generated WSDL file from my Java source code.  I have annotated the method with @WebMethod(exclude=true), however it is still appearing in the WSDL file.

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


[jira] Commented: (CXF-3128) @WebMethod(exclude=true) is not being honoured when generating WSDL

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932547#action_12932547 ] 

Daniel Kulp commented on CXF-3128:
----------------------------------


Doesn't sound like it.  If the @WebMethod(exclude=true) is on the SEI method, it SHOULD be excluded.   I just checked with one of  the samples and can reproduce it, yet we also have a unit test that does work.   Not sure what is going on yet.



> @WebMethod(exclude=true) is not being honoured when generating WSDL
> -------------------------------------------------------------------
>
>                 Key: CXF-3128
>                 URL: https://issues.apache.org/jira/browse/CXF-3128
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Jacob Carter
>
> I am attempting to prevent a public method appearing in the generated WSDL file from my Java source code.  I have annotated the method with @WebMethod(exclude=true), however it is still appearing in the WSDL file.

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