You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2010/07/16 20:21:50 UTC

[jira] Resolved: (CXF-2866) add "Request" as suffix for getInputMessageName()

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

Daniel Kulp resolved CXF-2866.
------------------------------

    Fix Version/s: Invalid
       Resolution: Won't Fix


I'm marking this as "won't fix" as the current behavior does follow all the recommendations as well as duplicates the behaviors of the other main stacks.

CXF does allow you configure in new ServiceConfiguration things that can override the getInputMessageName to do what you want, but the default should remain how it is.

> add "Request" as suffix for getInputMessageName()
> -------------------------------------------------
>
>                 Key: CXF-2866
>                 URL: https://issues.apache.org/jira/browse/CXF-2866
>             Project: CXF
>          Issue Type: Wish
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2.5
>            Reporter: nathanleewei
>            Priority: Minor
>             Fix For: Invalid
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> in org.apache.cxf.service.factory.DefaultServiceConfiguration, there're 2 funtions: getInputMessageName & getOutputMessageName 
>   @Override
>     public QName getInputMessageName(OperationInfo op, Method method) {
>         return new QName(op.getName().getNamespaceURI(), op.getName().getLocalPart() );
>     }
>  @Override
>     public QName getOutputMessageName(OperationInfo op, Method method) {
>         return new QName(op.getName().getNamespaceURI(), op.getName().getLocalPart() + "Response");
>     }
> the getOutputMessageName will append a suffix --  "Response" by default, while getInputMessageName append nothing.
> Can we append "Request" as suffix by default?
> @Override
>     public QName getInputMessageName(OperationInfo op, Method method) {
>         return new QName(op.getName().getNamespaceURI(), op.getName().getLocalPart() + "Request"); /*modified by nathan*/
>     }
> So that, the generated wsdl will looks nicer :)

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