Click here to Skip to main content
13,043,654 members (50,728 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi there,

I'm working on a project in which i connect my programs to a web service to get and insert data. When i tried to add the Service Reference of that Service, following error came:

The document at the url was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be ''.'.
- Report from 'DISCO Document' is 'Discovery document at the URL could not be found.'.
  - The document format is not recognized (the content type is 'application/xhtml+xml; charset=utf-8').
- Report from 'WSDL Document' is 'There is an error in XML document (3, 2).'.
  - <html xmlns=''> was not expected.
Metadata contains a reference that cannot be resolved: ''.
Metadata contains a reference that cannot be resolved: ''.
If the service is defined in the current solution, try building the solution and adding the service reference again.

Service can be found at:[^]

and one can browse this URL. I have no idea why this error is coming.
Any help would be great !
Posted 25-Feb-13 20:07pm
tumbledDown2earth 19-Apr-13 9:50am
Works perfect for me. I added this service reference and generated the proxies successfully. I think you should try again. Sometimes the connection breaks inn between leading to such errors

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100