cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Friar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-2766) @Webparam name not honoured
Date Fri, 16 Apr 2010 05:17:27 GMT

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

John Friar updated CXF-2766:
----------------------------

    Description: 
I have imported a wsdl from a service provider. A snippet of the generated webservice interface
is:

    @WebResult(name = "return-response", targetNamespace = "http://sp.com/service.wsdl/types",
partName = "returnResponse")
    @WebMethod(action = "http://sp.com/doReturn")
    public ReturnResponseType doReturn(
        @WebParam(partName = "returnTrx", name = "return-request", targetNamespace = "http://sp.com/service.wsdl/types")
        ReturnRequestType returnTrx
    ) throws ErrorMessages;

However, the soap message that is created does not honour the name of the @WebParam (return-request)
and instead uses doReturn as the name of the method and parameter. If any other name is used
then behaviour is as expected. I cannot find anything in the spec. that specifies that 'return'
should not be used at the start of a @WebParam name but that appears to be the issue.

Thanks,

John

  was:
I have imported a wsdl from a service provider. A snippet of the generated webservice interface
is:

    @WebResult(name = "return-response", targetNamespace = "http://spcom/service.wsdl/types",
partName = "returnResponse")
    @WebMethod(action = "http://methcheck.com/MethCheckWS/doReturn")
    public ReturnResponseType doReturn(
        @WebParam(partName = "returnTrx", name = "return-request", targetNamespace = "http://sp.com/service.wsdl/types")
        ReturnRequestType returnTrx
    ) throws ErrorMessages;

However, the soap message that is created does not honour the name of the @WebParam (return-request)
and instead uses doReturn as the name of the method and parameter. If any other name is used
then behaviour is as expected. I cannot find anything in the spec. that specifies that 'return'
should not be used at the start of a @WebParam name but that appears to be the issue.

Thanks,

John


> @Webparam name not honoured
> ---------------------------
>
>                 Key: CXF-2766
>                 URL: https://issues.apache.org/jira/browse/CXF-2766
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.2.6, 2.2.7
>         Environment: Mac OS-X, Windows XP, Spring Configured CXF Client
>            Reporter: John Friar
>
> I have imported a wsdl from a service provider. A snippet of the generated webservice
interface is:
>     @WebResult(name = "return-response", targetNamespace = "http://sp.com/service.wsdl/types",
partName = "returnResponse")
>     @WebMethod(action = "http://sp.com/doReturn")
>     public ReturnResponseType doReturn(
>         @WebParam(partName = "returnTrx", name = "return-request", targetNamespace =
"http://sp.com/service.wsdl/types")
>         ReturnRequestType returnTrx
>     ) throws ErrorMessages;
> However, the soap message that is created does not honour the name of the @WebParam (return-request)
and instead uses doReturn as the name of the method and parameter. If any other name is used
then behaviour is as expected. I cannot find anything in the spec. that specifies that 'return'
should not be used at the start of a @WebParam name but that appears to be the issue.
> Thanks,
> John

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message