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

Bug 322955

Summary: [model] Improper reconciliation of soap:body parts when used in a MIME binding context
Product: [WebTools] WTP Webservices Reporter: Valentin Baciu <valentinbaciu>
Component: wst.wsdlAssignee: Valentin Baciu <valentinbaciu>
Status: CLOSED FIXED QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3    
Version: 3.2.1   
Target Milestone: 3.2.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 322954    
Bug Blocks: 322956    
Attachments:
Description Flags
JUnit
none
Patch none

Description Valentin Baciu CLA 2010-08-17 16:56:13 EDT
+++ This bug was initially created as a clone of Bug #322954 +++

The WSDL EMF model's DOM to model reconciliation code for a SOAP body object assumes that the SOAP body extensibility element is a direct child of a binding's input/output/fault. This is not always the case, in particular when a SOAP body is used inside a MIME binding.

      <wsdl:input name="myOpRequest">
        <mime:multipartRelated>
          <mime:part>
            <soap:body parts="in1" use="literal"/>
          </mime:part>

Because of this assumption, the value of the parts attribute is not saved in the model and thus will be lost when forcing the model to reconcile the DOM using updateElement(true).

JUnit and fix to follow shortly.
Comment 1 Valentin Baciu CLA 2010-08-20 13:20:58 EDT
Created attachment 177116 [details]
JUnit
Comment 2 Valentin Baciu CLA 2010-08-20 13:21:14 EDT
Created attachment 177117 [details]
Patch
Comment 3 Valentin Baciu CLA 2010-08-20 13:24:35 EDT
Patches committed and released to WTP 3.2.2 builds > v201008201724 UTC.
Comment 4 Valentin Baciu CLA 2010-08-20 13:24:51 EDT
Fixed.
Comment 5 Valentin Baciu CLA 2010-08-23 14:07:49 EDT
Verified with M-3.2.2-20100823061035.
Comment 6 Valentin Baciu CLA 2010-08-23 14:07:59 EDT
Closing.