Bug 206845 - WS-I validator should produce useful error message when TAD cannot be obtained
Summary: WS-I validator should produce useful error message when TAD cannot be obtained
Status: NEW
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.wsi (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement with 2 votes (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords: helpwanted
: 254438 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-18 23:56 EDT by Lawrence Mandel CLA
Modified: 2010-07-20 11:34 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lawrence Mandel CLA 2007-10-18 23:56:39 EDT
When validating a WSDL document with WS-I validation set to suggest or require the WS-I test tools produce the following error message that is not very useful to end users if the TADs cannot be obtained:

WS-I: A problem occurred while running the WS-I WSDL conformance check: 
org.eclipse.wst.wsi.internal.analyzer.WSIAnalyzerException. The WS-I Test 
Assertion Document(TAD) was not found or could not be processed.  The 
WSDLAnalyzer was not able to validate the given WSDL file.

Users have trouble understanding what this error means and what to do to correct it. (See [1].) This error message should be made more user friendly instructing them what to do or pointing them to some documentation. 

[1]http://dev.eclipse.org/newslists/news.eclipse.webtools/msg14956.html

Steps to reproduce:
1. Disconnect from the Internet.
2. Launch a new workspace with WTP.
3. Create a new Dynamic Web project and create a new WSDL file in the project. (The name and contents of the WSDL file are unimportant. The WSDL file must contain valid WSDL though, as generated by the wizard.)
4. Ensure that WS-I validation is set to suggest or require. Validate the WSDL file. The error message is produced.
Comment 1 David Carver CLA 2007-10-23 10:43:23 EDT
(In reply to comment #0)
> When validating a WSDL document with WS-I validation set to suggest or require
> the WS-I test tools produce the following error message that is not very useful
> to end users if the TADs cannot be obtained:
> 
> WS-I: A problem occurred while running the WS-I WSDL conformance check: 
> org.eclipse.wst.wsi.internal.analyzer.WSIAnalyzerException. The WS-I Test 
> Assertion Document(TAD) was not found or could not be processed.  The 
> WSDLAnalyzer was not able to validate the given WSDL file.
> 
> Users have trouble understanding what this error means and what to do to
> correct it. (See [1].) This error message should be made more user friendly
> instructing them what to do or pointing them to some documentation. 
> 
> [1]http://dev.eclipse.org/newslists/news.eclipse.webtools/msg14956.html

Ideally, it would just prompt them to download the TADs if it can't get them.  Is there a reason, why the initial TADs aren't distributed with the plugin?  Are there IP issues?
Comment 2 Lawrence Mandel CLA 2007-10-23 11:06:56 EDT
I agree. I think a pointer to a doc that describes how to download the TADs and add them to the XML catalog would be useful.

WRT IP issues, there were issues when we tried to bundle the TADs back in (I think) 1.0. Given that we worked around the IP issues with the Java EE schemas and DTDs perhaps it's time to try again to bundle the TADs.
Comment 3 robert CLA 2007-11-29 22:15:08 EST
Hello.  I am not proposing a solution to this problem here.  Like others I believe the error message should be meaningful.  However, unless I am mistaken the following may provide some additional useful information.  I am doing this from MyEclipse.  Slide your mouse across the icons on the top toolbar until you find and open 'Launch Web Services Explorer.'  When that view opens slide your mouse across the icons in the top right of that window until you find and open 'WSDL Page.'  Question? Why are these ghosted out until you move your mouse over them?  Ghosted out implies they are not active to me. When the left-hand side changes to 'WSDL Main' click on that link and the right-hand side will change to a window that has a box for you to enter the URL of your WSDL (ie. http://localhost:7001/MyService/MyService?WSDL.  Enter your WSDL URL, click the GO button and with any luck more error information will be displayed in the 'Status' portion of the view.
Comment 4 Valentin Baciu CLA 2008-11-06 10:58:09 EST
*** Bug 254438 has been marked as a duplicate of this bug. ***
Comment 5 Valentin Baciu CLA 2008-11-06 10:59:55 EST
Bug 254438 asks for the message to be displayed in the problems view and the graphical view.