In order for a Web Reference to work, I think it needs the owner of the service to have published a WSDL file for .Net to read and create local objects with. You then call these local objects in your project, and they get populated with Data from the other end of the service using SOAP.
I've been looking for a WSDL file that describes the W3C's validation SOAP on their site somewhere, but no luck so far. Which is odd given the W3C manage the WSDL protocol. You'd really expect them to use it!
If anyone knows:
- A way to get a Web Reference working without WSDL or...
- Where the W3C Validator's WSDL file is...
Then please let me know...
Failing that - the W3C have put a link to a C# library on their site (http://validator.w3.org/docs/api.html#libs), which is easy enough to download and build. But that uses LINQ to build an object based on the SOAP returned by the W3C - which seems a bit heavy for my purposes... It's a useful starting point if nothing else tho.