| 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.wsdl | Assignee: | Valentin Baciu <valentinbaciu> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Keith Chong <keith.chong.ca> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | ccc | ||||||
| Version: | 3.0.5 | Flags: | keith.chong.ca:
review+
|
||||||
| Target Milestone: | 3.0.5 P | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 322955, 322956 | ||||||||
| Attachments: |
|
||||||||
Created attachment 176851 [details]
JUnit
Apply to org.eclipse.wst.wsdl.tests. Run org.eclipse.wst.wsdl.tests.AllTestCases as a JUnit plug-in test. The new test case will fail.
Created attachment 176852 [details]
Patch
Apply to org.eclipse.wst.wsdl, R3_0_5_patches branch.
Rerun the JUnits, all should be green.
Keith, please review and consider approving this fix for 3.0.5 patches. Valentin, patch and junit tests look good. Committed to R3_0_5_patches Verified. Closing. |
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.