[ 
https://issues.apache.org/jira/browse/CXF-2866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625269#comment-13625269
 ] 

Dusan Slivka commented on CXF-2866:
-----------------------------------

I see. However, WSDL generated by CXF does not have "Request" suffix on message 
names. That's what I think original request (by nathanleewei) was about. 
Discussed method is called getInputMessageName() -> I assume it relates to 
message, not element / type name. 
Type name can be customized by @XmlType annotation.
Element name can be customized by @WebParam annotation.
Message name cannot be (simply) customized.
The missing? message name suffix was actually the reason why I got to this 
forum.
                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to