You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Alessandro Riva (JIRA)" <ji...@apache.org> on 2011/09/05 12:56:10 UTC

[jira] [Created] (CXF-3792) cxf-codegen-plugin wrong method signature generation

cxf-codegen-plugin wrong method signature generation
----------------------------------------------------

                 Key: CXF-3792
                 URL: https://issues.apache.org/jira/browse/CXF-3792
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.3.5
            Reporter: Alessandro Riva


Starting from 2.3.5 version, there is an error in the generated signature for the attached example

(Expected result should be:

public interface TestServicePortType {

    @WebResult(name = "executionDoneResponse", targetNamespace = "http://webservices/testService/", partName = "parameters")
    @WebMethod(action = "http://webservices/testService/executionDone")
    public ExecutionDoneResponse executionDone(
        @WebParam(partName = "parameters", name = "executionDone", targetNamespace = "http://webservices/testService/")
        ExecutionDone parameters
    ) throws webservices.user.XmlinvalidUserCredentialFaultMessage;
}
)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3792) cxf-codegen-plugin wrong method signature generation

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

Daniel Kulp updated CXF-3792:
-----------------------------

    Description: 
Starting from 2.3.5 version, there is an error in the generated signature for the attached example

(Expected result should be:
{code}
public interface TestServicePortType {

    @WebResult(name = "executionDoneResponse", targetNamespace = "http://webservices/testService/", partName = "parameters")
    @WebMethod(action = "http://webservices/testService/executionDone")
    public ExecutionDoneResponse executionDone(
        @WebParam(partName = "parameters", name = "executionDone", targetNamespace = "http://webservices/testService/")
        ExecutionDone parameters
    ) throws webservices.user.XmlinvalidUserCredentialFaultMessage;
}
)
{code}

  was:
Starting from 2.3.5 version, there is an error in the generated signature for the attached example

(Expected result should be:

public interface TestServicePortType {

    @WebResult(name = "executionDoneResponse", targetNamespace = "http://webservices/testService/", partName = "parameters")
    @WebMethod(action = "http://webservices/testService/executionDone")
    public ExecutionDoneResponse executionDone(
        @WebParam(partName = "parameters", name = "executionDone", targetNamespace = "http://webservices/testService/")
        ExecutionDone parameters
    ) throws webservices.user.XmlinvalidUserCredentialFaultMessage;
}
)


> cxf-codegen-plugin wrong method signature generation
> ----------------------------------------------------
>
>                 Key: CXF-3792
>                 URL: https://issues.apache.org/jira/browse/CXF-3792
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.3.5
>            Reporter: Alessandro Riva
>         Attachments: ErrorCXF.zip
>
>
> Starting from 2.3.5 version, there is an error in the generated signature for the attached example
> (Expected result should be:
> {code}
> public interface TestServicePortType {
>     @WebResult(name = "executionDoneResponse", targetNamespace = "http://webservices/testService/", partName = "parameters")
>     @WebMethod(action = "http://webservices/testService/executionDone")
>     public ExecutionDoneResponse executionDone(
>         @WebParam(partName = "parameters", name = "executionDone", targetNamespace = "http://webservices/testService/")
>         ExecutionDone parameters
>     ) throws webservices.user.XmlinvalidUserCredentialFaultMessage;
> }
> )
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3792) cxf-codegen-plugin wrong method signature generation

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

Alessandro Riva updated CXF-3792:
---------------------------------

    Attachment: ErrorCXF.zip

Sample project exibits problem

> cxf-codegen-plugin wrong method signature generation
> ----------------------------------------------------
>
>                 Key: CXF-3792
>                 URL: https://issues.apache.org/jira/browse/CXF-3792
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.3.5
>            Reporter: Alessandro Riva
>         Attachments: ErrorCXF.zip
>
>
> Starting from 2.3.5 version, there is an error in the generated signature for the attached example
> (Expected result should be:
> public interface TestServicePortType {
>     @WebResult(name = "executionDoneResponse", targetNamespace = "http://webservices/testService/", partName = "parameters")
>     @WebMethod(action = "http://webservices/testService/executionDone")
>     public ExecutionDoneResponse executionDone(
>         @WebParam(partName = "parameters", name = "executionDone", targetNamespace = "http://webservices/testService/")
>         ExecutionDone parameters
>     ) throws webservices.user.XmlinvalidUserCredentialFaultMessage;
> }
> )

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CXF-3792) cxf-codegen-plugin wrong method signature generation

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

Daniel Kulp resolved CXF-3792.
------------------------------

       Resolution: Not A Problem
    Fix Version/s: Invalid
         Assignee: Daniel Kulp


The generated method signature is exactly per-spec and also matches what the JAX-WS RI generates for the same WSDL.   This is working as designed and as per specification.  

If you want/need it in that form, you need to provide a jaxws customization/binding file to force it into "bare" mode.  With CXF 2.4.2, you can add a "-bareMethods" flag to wsdl2java to accomplish it as well.  (with the maven codegen plugin, just add <bareMethods/> to the wsdlOptions.)

> cxf-codegen-plugin wrong method signature generation
> ----------------------------------------------------
>
>                 Key: CXF-3792
>                 URL: https://issues.apache.org/jira/browse/CXF-3792
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.3.5
>            Reporter: Alessandro Riva
>            Assignee: Daniel Kulp
>             Fix For: Invalid
>
>         Attachments: ErrorCXF.zip
>
>
> Starting from 2.3.5 version, there is an error in the generated signature for the attached example
> (Expected result should be:
> {code}
> public interface TestServicePortType {
>     @WebResult(name = "executionDoneResponse", targetNamespace = "http://webservices/testService/", partName = "parameters")
>     @WebMethod(action = "http://webservices/testService/executionDone")
>     public ExecutionDoneResponse executionDone(
>         @WebParam(partName = "parameters", name = "executionDone", targetNamespace = "http://webservices/testService/")
>         ExecutionDone parameters
>     ) throws webservices.user.XmlinvalidUserCredentialFaultMessage;
> }
> )
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3792) cxf-codegen-plugin wrong method signature generation

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

Alessandro Riva updated CXF-3792:
---------------------------------

    Attachment: ErrorCXF.zip

Sample maven project affected by the bug

> cxf-codegen-plugin wrong method signature generation
> ----------------------------------------------------
>
>                 Key: CXF-3792
>                 URL: https://issues.apache.org/jira/browse/CXF-3792
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.3.5
>            Reporter: Alessandro Riva
>         Attachments: ErrorCXF.zip
>
>
> Starting from 2.3.5 version, there is an error in the generated signature for the attached example
> (Expected result should be:
> public interface TestServicePortType {
>     @WebResult(name = "executionDoneResponse", targetNamespace = "http://webservices/testService/", partName = "parameters")
>     @WebMethod(action = "http://webservices/testService/executionDone")
>     public ExecutionDoneResponse executionDone(
>         @WebParam(partName = "parameters", name = "executionDone", targetNamespace = "http://webservices/testService/")
>         ExecutionDone parameters
>     ) throws webservices.user.XmlinvalidUserCredentialFaultMessage;
> }
> )

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3792) cxf-codegen-plugin wrong method signature generation

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

Alessandro Riva updated CXF-3792:
---------------------------------

    Attachment:     (was: ErrorCXF.zip)

> cxf-codegen-plugin wrong method signature generation
> ----------------------------------------------------
>
>                 Key: CXF-3792
>                 URL: https://issues.apache.org/jira/browse/CXF-3792
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.3.5
>            Reporter: Alessandro Riva
>         Attachments: ErrorCXF.zip
>
>
> Starting from 2.3.5 version, there is an error in the generated signature for the attached example
> (Expected result should be:
> public interface TestServicePortType {
>     @WebResult(name = "executionDoneResponse", targetNamespace = "http://webservices/testService/", partName = "parameters")
>     @WebMethod(action = "http://webservices/testService/executionDone")
>     public ExecutionDoneResponse executionDone(
>         @WebParam(partName = "parameters", name = "executionDone", targetNamespace = "http://webservices/testService/")
>         ExecutionDone parameters
>     ) throws webservices.user.XmlinvalidUserCredentialFaultMessage;
> }
> )

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira