The HTML document does not contain Web service discovery information
Asked Answered
G

3

6

I am using Visual Studio Professional 2012 and trying to add web reference for ReportService.asmx through Add Service Reference>Advanced>Add Web Reference.

In the Add Web Reference dialog I enter the address to the ssrs report service and click GO. The URL is,

http://MyServerName/ReportServer/ReportService.asmx.

I am able to view the WSDL in my browser.

On the left, it shows me the methods it found in the WSDL.

On the right, the Add Reference button is disabled and the following error appears:

The HTML document does not contain Web service discovery information.

what could be reason for this?

Gamin answered 6/1, 2015 at 6:13 Comment(0)
D
3

Very late, but this helped me: In a browser, open the url and add "?wsdl" at the end. If you have any exceptions that occurred during serialization, then the error(s) will show there and you can then resolve the problem. In my case a new class did not have a parameter-less constructor.

Distinctly answered 10/6, 2016 at 12:53 Comment(0)
L
1

There is a simple post on:

https://anubhavg.wordpress.com/2008/05/06/how-to-create-a-wsdl-file/

that answers the question.

Basically run your web service in visual studio. When a Internet Explorer is launched copy http address from the address bar. That is the address for disco to use. The total command should look like disco http://localhost:000000/MyCustomWebServiceFile.asmx

Lacey answered 1/4, 2015 at 22:13 Comment(0)
C
1

My issue got resolved by allowing the access to the web service on the hosted environment.

<allow users="*" /> in web.config against the service.

Cultivable answered 18/8, 2021 at 13:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.