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

Bug 322956

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.3 M2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 322954, 322955    
Bug Blocks:    
Attachments:
Description Flags
JUnit
none
Patch none

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

+++ 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:43:36 EDT
Created attachment 177119 [details]
JUnit
Comment 2 Valentin Baciu CLA 2010-08-20 13:43:52 EDT
Created attachment 177120 [details]
Patch
Comment 3 Valentin Baciu CLA 2010-08-20 13:46:45 EDT
Patches committed and released to WTP 3.3 M2 builds > v201008201746.
Comment 4 Valentin Baciu CLA 2010-08-23 13:56:52 EDT
Verified with I-3.3.0-20100820215027.
Comment 5 Valentin Baciu CLA 2010-08-23 13:57:00 EDT
Closing.