Bug 127224 - WS-I warnings when opening complex WSDL - wrong alarm
Summary: WS-I warnings when opening complex WSDL - wrong alarm
Status: NEW
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.wsi (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Keith Chong CLA
URL: http://personal.inet.fi/cool/sports/m...
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-02-10 02:58 EST by Matti Kaikkonen CLA
Modified: 2010-07-20 11:34 EDT (History)
1 user (show)

See Also:


Attachments
WSDL file (151.89 KB, text/xml)
2006-02-10 02:59 EST, Matti Kaikkonen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Kaikkonen CLA 2006-02-10 02:58:22 EST
Editor complains about non-existing problems in complex WSDL.


Severity	Description	Resource	In Folder	Location	Creation Time	Id
1	WS-I: (BP2102) An XML schema import element references something other than an XML schema definition: the referenced element does not have "schema" from XML namespace "http://www.w3.org/2001/XMLSchema" as root element.	SOAPFrontGetShowBalanceJMS.wsdl	BalanceFlat/WebContent	line 4	22. tammikuuta 2006 15:52:01	74
1	WS-I: (BP2122) A wsdl:types element contained a data type definition that is not an XML schema definition.	SOAPFrontGetShowBalanceJMS.wsdl	BalanceFlat/WebContent	line 4	22. tammikuuta 2006 15:52:01	75
1	WS-I: (BP2102) An XML schema import element references something other than an XML schema definition: the referenced element does not have "schema" from XML namespace "http://www.w3.org/2001/XMLSchema" as root element.	SOAPFrontGetShowBalanceJMS.wsdl	BalanceFWLS/WebContent	line 4	22. tammikuuta 2006 15:57:04	76
1	WS-I: (BP2122) A wsdl:types element contained a data type definition that is not an XML schema definition.	SOAPFrontGetShowBalanceJMS.wsdl	BalanceFWLS/WebContent	line 4	22. tammikuuta 2006 15:57:04	77
Comment 1 Matti Kaikkonen CLA 2006-02-10 02:59:47 EST
Created attachment 34483 [details]
WSDL file
Comment 2 David Carver CLA 2008-06-28 01:05:29 EDT
This is still a problem in WTP 3.0.
Comment 3 Valentin Baciu CLA 2008-10-30 16:15:45 EDT
The WS-I validator appears to go and try to fetch schemas from these URIs http://www.openapplications.org/oagis/9 and
http://www.openapplications.org/oagis/9/unqualifieddatatypes/1.1. Both these return 404 not found errors.

I have tried to add entries to the XML catalog to point to local empty schemas just to confirm that this is the case and to see if the problems go away. 

Unfortunately it appears that the WS-I validator does not make use of the XML catalog consistenly. The code eventually makes its way to 

org.eclipse.wst.wsi.internal.core.xml.XMLUtils.parseXMLDocumentURL(URL, String)

where it goes directly and opens a URL connection on the URI, resulting in the failure.

The validator could provide more details about the fact that the actual retrieval failed.

It should probably also be enhanced to use the XML catalog consistently instead of opening URL connections all over the place.

I have opened bug 252889 to track the need to locate all places where the XML catalog or a similar mechanism is not used.