Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314702 - [model] Element referenced by inline namespace cannot be found
Summary: [model] Element referenced by inline namespace cannot be found
Status: CLOSED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.wsdl (show other bugs)
Version: 3.0.5   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: 3.0.5 P   Edit
Assignee: Valentin Baciu CLA
QA Contact: Valentin Baciu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 314929 317735
  Show dependency tree
 
Reported: 2010-05-27 11:26 EDT by Valentin Baciu CLA
Modified: 2010-06-28 14:25 EDT (History)
2 users (show)

See Also:
keith.chong.ca: review+


Attachments
Sample WSDL document (2.31 KB, application/octet-stream)
2010-05-27 11:26 EDT, Valentin Baciu CLA
no flags Details
JUnit (currently failing) (6.61 KB, patch)
2010-05-27 13:42 EDT, Valentin Baciu CLA
no flags Details | Diff
Patch (1.77 KB, patch)
2010-05-28 14:12 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-05-27 11:26:16 EDT
Created attachment 170204 [details]
Sample WSDL document

The WSDL EMF model does not properly resolve component QNames in the default namespace when the default namespace is re-declared locally on the element that  uses the QName reference. See attached WSDL document for an example. 

To see the visible manifestation of this bug, open the attached WSDL document with the WSDL editor, switch to the design view and note the broken links between the message parts and the elements they refer to.
Comment 1 Valentin Baciu CLA 2010-05-27 13:42:52 EDT
Created attachment 170234 [details]
JUnit (currently failing)

Apply to org.eclipse.wst.wsdl.tests. Run org.eclipse.wst.wsdl.tests.AllTestCases and notice the new test case failing.
Comment 2 Valentin Baciu CLA 2010-05-28 14:12:33 EDT
Created attachment 170397 [details]
Patch

Apply to org.eclipse.wst.wsdl.

Re-run the JUnits - they should be all green now.
Comment 3 Keith Chong CLA 2010-06-03 14:22:35 EDT
Hey Valentin, looks ok.  I was wondering why the prefix is assigned "xmlns" in the patch, but it makes sense in the context of the code, that the attribute local part name becomes "xmlns".
Comment 4 Carl Anderson CLA 2010-06-04 09:10:58 EDT
Committed to R3_0_5_patches
Comment 5 Valentin Baciu CLA 2010-06-28 14:25:03 EDT
Verified. Closing.