Kalpa perera

Kalpa perera

  • NA
  • 12
  • 2.2k

Adding Service Refference Error

Jun 26 2018 2:26 AM
I'm getting an error while adding the web service reference to the VS 2010, has anyone faced this issue before?
 
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 'http://www.w3.org/2001/XMLSchema'.'. - Report from 'DISCO Document' is 'Discovery document at the URL could not be found.'. - The document format is not recognized. - Report from 'WSDL Document' is 'There is an error in XML document (2, 55).'. - The string '' is not a valid Uri value. Metadata contains a reference that cannot be resolved: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.

Answers (1)