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

Bug 314235

Summary: Bad wsdl emf model state with a specific wsdl document
Product: [WebTools] WTP Webservices Reporter: Dimitar Donchev <dimitar.donchev>
Component: wst.wsdlAssignee: wst.wsdl <wst.wsdl-inbox>
Status: CLOSED DUPLICATE QA Contact: Valentin Baciu <valentinbaciu>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Document used to reproduce
none
JUnit test reproducing the issue none

Description Dimitar Donchev CLA 2010-05-25 06:10:41 EDT
Build Identifier: 20100218-1602

When the wsdl model is loaded with the given wsdl document (as an attachment), the references from input->Messages are not loaded correctly. Note that the definitions has no targetNamespace attribute and also has NO " xmlns="" " attribute. 

After validating - no error markers are created for this resource.

I am not 100% sure if the lack of the default " xmlns="" " attribute invalidates the document, but either way - in this case the validation has a bug - not indicating the document is invalid in any way.

Reproducible: Always

Steps to Reproduce:
1.Copy the attached wsdl document in a project
2.Validate and note lack error markers 
3.Open with the wsdl Editor - note that the merssages are not resolved
Comment 1 Dimitar Donchev CLA 2010-05-25 06:12:46 EDT
Created attachment 169800 [details]
Document used to reproduce
Comment 2 Dimitar Donchev CLA 2010-05-25 06:19:25 EDT
Created attachment 169801 [details]
JUnit test reproducing the issue

A JUnit test, which reproduces the issue. 
If this JUnit finds error markers on the wsdl, it won't assert the references in the model.

Regards, 
Dimitar
Comment 3 Valentin Baciu CLA 2010-05-25 11:05:51 EDT
Hi Dimitar, seems to me this is duplicate of bug 212508.

*** This bug has been marked as a duplicate of bug 212508 ***
Comment 4 Dimitar Donchev CLA 2010-05-25 11:17:04 EDT
Yes, probably. The difference is that no NPEs from the validation gets thrown.