Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312058

Summary: [editor] Suffix "request" is not added to the generated request type in WSDL Design Editor
Product: [WebTools] WTP Webservices Reporter: Wojciech Galanciak <wojciech.galanciak>
Component: wst.wsdlAssignee: wst.wsdl <wst.wsdl-inbox>
Status: RESOLVED INVALID QA Contact: Valentin Baciu <valentinbaciu>
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Wojciech Galanciak CLA 2010-05-07 09:30:40 EDT
When we add new operation (in default named NewOperation) in WSDL Design editor the default name for element related to part for NewOperationRequest message is NewOperation instead of NewOperationRequest. It is inconsistent cause this kind of suffix is added to the element for NewOperationResponse (name of this element is NewOperationResponse).

There is:
<wsdl:message name="NewOperationRequest">
<wsdl:part name="parameters" element="tns:NewOperation"></wsdl:part>
</wsdl:message>
 
but should be:
<wsdl:message name="NewOperationRequest">
<wsdl:part name="parameters" element="tns:NewOperationRequest"></wsdl:part>
</wsdl:message>
Comment 1 Valentin Baciu CLA 2010-05-12 10:15:22 EDT
Hi Wojciech, there is a very good reason for this behaviour: the WSDL editor follows the document/literal wrapped authoring pattern. This pattern requires that the name of the element referenced from the input message part be identical to the operation name.

See the following links for information on the document/literal wrapped WSDL pattern.

http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/#N1021A
http://pzf.fremantle.org/2007/05/handlign.html
http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html