[
https://issues.apache.org/jira/browse/CXF-2866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884455#action_12884455
]
Glen Mazza commented on CXF-2866:
---------------------------------
I don't think so; not having a suffix on the request (while having it on the
response) is a standard doc/lit wrapped convention. See here:
http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/#listing8
The goal is to have the input object "getOutputMessageName" be the same as the
operation being called, so the web service easily knows what operation is being
called (it can also use the SOAP Action HTTP header to determine that though.)
> 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
> 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.