You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Ryan Chee (JIRA)" <ji...@apache.org> on 2008/10/06 09:25:44 UTC

[jira] Created: (CXF-1843) wsdl2java: failed to create "action" attribute under annotation @WebMethod

wsdl2java: failed to create "action" attribute under annotation @WebMethod
--------------------------------------------------------------------------

                 Key: CXF-1843
                 URL: https://issues.apache.org/jira/browse/CXF-1843
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.0.5
         Environment: Apache CXF-2.0.5-Incubator
            Reporter: Ryan Chee


A client is invoking a soap 1.2 .NET webservice. The issue we're having is that the remote service requires soap action headers and cxf's wsdl2java is not generating action parameters for each WebMethod annotation automatically. 

For example, wsdl2java will generate this annotation:

@WebMethod(operationName = "GetCustomerData")

but we need it to generate this one:

@WebMethod(operationName = "GetCustomerData",action = "http://tempuri.org/IAceRewardsService/GetCustomerData") 

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


[jira] Updated: (CXF-1843) wsdl2java: failed to create "action" attribute under annotation @WebMethod

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

Ryan Chee updated CXF-1843:
---------------------------

    Attachment: sampleservice.zip

> wsdl2java: failed to create "action" attribute under annotation @WebMethod
> --------------------------------------------------------------------------
>
>                 Key: CXF-1843
>                 URL: https://issues.apache.org/jira/browse/CXF-1843
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.5
>         Environment: Apache CXF-2.0.5-Incubator
>            Reporter: Ryan Chee
>         Attachments: sampleservice.zip
>
>
> A client is invoking a soap 1.2 .NET webservice. The issue we're having is that the remote service requires soap action headers and cxf's wsdl2java is not generating action parameters for each WebMethod annotation automatically. 
> For example, wsdl2java will generate this annotation:
> @WebMethod(operationName = "GetCustomerData")
> but we need it to generate this one:
> @WebMethod(operationName = "GetCustomerData",action = "http://tempuri.org/IAceRewardsService/GetCustomerData") 

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


[jira] Commented: (CXF-1843) wsdl2java: failed to create "action" attribute under annotation @WebMethod

Posted by "Ryan Chee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637028#action_12637028 ] 

Ryan Chee commented on CXF-1843:
--------------------------------

I have attached a sample wsdl file that generates this kind of behavior. 

> wsdl2java: failed to create "action" attribute under annotation @WebMethod
> --------------------------------------------------------------------------
>
>                 Key: CXF-1843
>                 URL: https://issues.apache.org/jira/browse/CXF-1843
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.5
>         Environment: Apache CXF-2.0.5-Incubator
>            Reporter: Ryan Chee
>         Attachments: sampleservice.zip
>
>
> A client is invoking a soap 1.2 .NET webservice. The issue we're having is that the remote service requires soap action headers and cxf's wsdl2java is not generating action parameters for each WebMethod annotation automatically. 
> For example, wsdl2java will generate this annotation:
> @WebMethod(operationName = "GetCustomerData")
> but we need it to generate this one:
> @WebMethod(operationName = "GetCustomerData",action = "http://tempuri.org/IAceRewardsService/GetCustomerData") 

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


[jira] Commented: (CXF-1843) wsdl2java: failed to create "action" attribute under annotation @WebMethod

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

Daniel Kulp commented on CXF-1843:
----------------------------------


This is actually slightly different than I expected.   The problem has to do with the policy reference in the binding.   If that is removed or moved to AFTER the soap12:binding element, the annotations are generated correctly.   Working on a fix.



> wsdl2java: failed to create "action" attribute under annotation @WebMethod
> --------------------------------------------------------------------------
>
>                 Key: CXF-1843
>                 URL: https://issues.apache.org/jira/browse/CXF-1843
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.5
>         Environment: Apache CXF-2.0.5-Incubator
>            Reporter: Ryan Chee
>         Attachments: sampleservice.zip
>
>
> A client is invoking a soap 1.2 .NET webservice. The issue we're having is that the remote service requires soap action headers and cxf's wsdl2java is not generating action parameters for each WebMethod annotation automatically. 
> For example, wsdl2java will generate this annotation:
> @WebMethod(operationName = "GetCustomerData")
> but we need it to generate this one:
> @WebMethod(operationName = "GetCustomerData",action = "http://tempuri.org/IAceRewardsService/GetCustomerData") 

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


[jira] Commented: (CXF-1843) wsdl2java: failed to create "action" attribute under annotation @WebMethod

Posted by "Dan Diephouse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637073#action_12637073 ] 

Dan Diephouse commented on CXF-1843:
------------------------------------

FYI, I think this is the same issue as: http://www.nabble.com/wsdl2java-%2B-@WebMethod-annotation-with-action...-td19535644.html

> wsdl2java: failed to create "action" attribute under annotation @WebMethod
> --------------------------------------------------------------------------
>
>                 Key: CXF-1843
>                 URL: https://issues.apache.org/jira/browse/CXF-1843
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.5
>         Environment: Apache CXF-2.0.5-Incubator
>            Reporter: Ryan Chee
>         Attachments: sampleservice.zip
>
>
> A client is invoking a soap 1.2 .NET webservice. The issue we're having is that the remote service requires soap action headers and cxf's wsdl2java is not generating action parameters for each WebMethod annotation automatically. 
> For example, wsdl2java will generate this annotation:
> @WebMethod(operationName = "GetCustomerData")
> but we need it to generate this one:
> @WebMethod(operationName = "GetCustomerData",action = "http://tempuri.org/IAceRewardsService/GetCustomerData") 

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


[jira] Resolved: (CXF-1843) wsdl2java: failed to create "action" attribute under annotation @WebMethod

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

Daniel Kulp resolved CXF-1843.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.3
                   2.0.9
         Assignee: Daniel Kulp

> wsdl2java: failed to create "action" attribute under annotation @WebMethod
> --------------------------------------------------------------------------
>
>                 Key: CXF-1843
>                 URL: https://issues.apache.org/jira/browse/CXF-1843
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.5
>         Environment: Apache CXF-2.0.5-Incubator
>            Reporter: Ryan Chee
>            Assignee: Daniel Kulp
>             Fix For: 2.0.9, 2.1.3
>
>         Attachments: sampleservice.zip
>
>
> A client is invoking a soap 1.2 .NET webservice. The issue we're having is that the remote service requires soap action headers and cxf's wsdl2java is not generating action parameters for each WebMethod annotation automatically. 
> For example, wsdl2java will generate this annotation:
> @WebMethod(operationName = "GetCustomerData")
> but we need it to generate this one:
> @WebMethod(operationName = "GetCustomerData",action = "http://tempuri.org/IAceRewardsService/GetCustomerData") 

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