Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322956 - [model] Improper reconciliation of soap:body parts when used in a MIME binding context
Summary: [model] Improper reconciliation of soap:body parts when used in a MIME bindin...
Status: CLOSED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.wsdl (show other bugs)
Version: 3.2.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.3 M2   Edit
Assignee: Valentin Baciu CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords:
Depends on: 322954 322955
Blocks:
  Show dependency tree
 
Reported: 2010-08-17 16:56 EDT by Valentin Baciu CLA
Modified: 2010-08-23 13:57 EDT (History)
0 users

See Also:


Attachments
JUnit (5.38 KB, patch)
2010-08-20 13:43 EDT, Valentin Baciu CLA
no flags Details | Diff
Patch (3.44 KB, patch)
2010-08-20 13:43 EDT, Valentin Baciu CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.