cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Knight (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-2866) add "Request" as suffix for getInputMessageName()
Date Wed, 07 Jan 2015 09:59:34 GMT

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

Erik Knight edited comment on CXF-2866 at 1/7/15 9:58 AM:
----------------------------------------------------------

[~gmazza@apache.org] I'm trying to upgrade a legacy Axis1 web service to CXF and in order
to maintain the same wsdl (so that I don't need to change any of the clients) I need the Request
suffix at the end of the input message. Do you have any suggestion how I could do that? I've
tried:

     @WebParam(name, partname), @WebMethod(operationName), etc...

But so far the best I can get is that the input message is named whateverRequest but then
the output is named whateverRequestResponse.  

Any ideas?

For future searchers: This seems to be the solution: http://cxf.apache.org/docs/interceptors.html


was (Author: eknight):
[~gmazza@apache.org] I'm trying to upgrade a legacy Axis1 web service to CXF and in order
to maintain the same wsdl (so that I don't need to change any of the clients) I need the Request
suffix at the end of the input message. Do you have any suggestion how I could do that? I've
tried:

     @WebParam(name, partname), @WebMethod(operationName), etc...

But so far the best I can get is that the input message is named whateverRequest but then
the output is named whateverRequestResponse.  

Any ideas?

> 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 looks nicer :)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message