Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314235 - Bad wsdl emf model state with a specific wsdl document
Summary: Bad wsdl emf model state with a specific wsdl document
Status: CLOSED DUPLICATE of bug 212508
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.wsdl (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.wsdl CLA
QA Contact: Valentin Baciu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 06:10 EDT by Dimitar Donchev CLA
Modified: 2010-05-25 11:17 EDT (History)
0 users

See Also:


Attachments
Document used to reproduce (1.79 KB, text/xml)
2010-05-25 06:12 EDT, Dimitar Donchev CLA
no flags Details
JUnit test reproducing the issue (9.52 KB, application/zip)
2010-05-25 06:19 EDT, Dimitar Donchev CLA
no flags Details

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