This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4631 - Proxy Class cannot be generated using WSDL 2 file on site
Summary: Proxy Class cannot be generated using WSDL 2 file on site
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: P2 major
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: n/a
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-12 14:58 UTC by Aaron Cope
Modified: 2008-06-18 20:18 UTC (History)
2 users (show)

See Also:


Attachments

Description Aaron Cope 2007-06-12 14:58:39 UTC
I cannot generate a proxy class to call the CSS validation web service given the provided wsdl file (http://www.w3.org/2005/09/css-validator.wsdl) in the web documentation.

The following error was generated:
Error: There was an error processing 'http://www.w3.org/2005/09/css-validator.wsdl'.
- The document at the url http://www.w3.org/2005/09/css-validator.wsdl was not recognized as a known document type.
The error message from each known type may help you fix the problem:
-Report from 'WSDL Document' is 'There is an error in XML document (2, 2).'.
-<description xmlns='http://www.w3.org/2006/01/wsdl'> was not expected.
-Report from 'DISCO Document' is 'Discovery document at the URL http://www.w3.org/2005/09/css-validator.wsdl could not be found.'.
-The document format is not recognized (the content type is 'application/wsdl+xml').
-Report from 'XML Schema' is 'Expected Schema root. Make sure that the root element is <schema> and the namespace is 'http://www.w3.org/2001/XMLSchema' for an XSD schema or 'urn:schemas-microsoft-com:xml-data' for an XDR schema. An error occurred at , (2, 2).'.

More information:
-OS: Windows XP SP2
-LANGUAGE: C#.NET
-DEV ENV: tried MS VS.NET 2003 & MS VS.NET 2005 (by adding web service reference & by using the wsdl.exe command-line utility provided by both versions of VS.NET)
-BROWSER: attempted download in Firefox, IE & Safari for PC. 
-Attempted to generate the proxy from two different locations (same error message):
1) from the URL at w3c
2) from the local URL after downloading from w3c

Please let me know if I am missing something or if the WSDL is malformed. Perhaps the VS.NET 2003 & 2005 wsdl tool does not support WSDL 2.0? I couldn't find any conclusive documentation on this (http://msdn2.microsoft.com/en-us/library/7h3ystb6(vs.71).aspx), but if it is the case, do you have a WSDL 1.1 spec for creating a proxy class to call this web service?

Thank you.
Comment 1 Bug Me Not 2008-06-18 20:18:17 UTC
I had this problem as well.  It appears that .NET's wsdl.exe does not support WSDL2.  Someone did post a WSDL version 1 file here ( http://lists.w3.org/Archives/Public/public-qa-dev/2005Nov/att-0006/validator_w11.wsdl ), but it also has some problems and even after I cleaned it up, .NET did not like  it.

So solve my problem I resorted to hand coding the classes in question but ran into one final blocking bug ( http://www.w3.org/Bugs/Public/show_bug.cgi?id=5770 ) that ended my attempts at using XML output from this service.