RE: Unable to add Web Reference in Visual Studio 2008 on Win 2003



Steven,

In fact if you read the title of the thread it said
UNABLE TO ADD WEB REFERENCE IN VISUAL STUDIO 2008

That means I am trying to add a web reference and Visual Studio itself is
throwing the error about

C:\Program Files\Microsoft Visual Studio 9.0\VC>wsdl.exe
http://localhost/_vti_b
in/ReportServer/ReportService2006.asmx?WSDL
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.1432]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: There was an error processing
'http://localhost/_vti_bin/ReportServer/Rep
ortService2006.asmx?WSDL'.
- The document at the url
http://localhost/_vti_bin/ReportServer/ReportService
2006.asmx?WSDL was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Root element is missing.'.
- Report from 'WSDL Document' is 'There is an error in XML document (0,
0).'.
- Root element is missing.
- Report from 'XML Schema' is 'Root element is missing.'.


Hope that makes it clear.

In response to your test to
browse to the page in browser

if I go to
http://localhost/_vti_bin/ReportServer/ReportService2006.asmx

I get the supported operations, but if I add ?WSDL

I just get a blank screen. If it is an error on the server side do you have
any suggestions how to fix it please. It is a MOSS Site that I am using Deep
Integration with SSRS.

--
Steve G


"Steven Cheng [MSFT]" wrote:

Hi Steve,

From your description, you're encoutering some problem when try adding
reference against a webservice ,correct?

Based on the code snippet and error info you provided, you're using the
wsdl.exe to generate proxy from commandline. Also, the following url
indicate that you're trying to generate proxy code against SQL Server
reporting service webservice, it that correct?

http://localhost/_vti_bin/ReportServer/ReportService2006.asmx?WSDL

I've performed some simple test on my side, seems the WSDL.exe and add
webreference(in Visual Studio) can correctly generate the proxy code. The
problem you encounterred might be a specific one. I suggest you try the
following things to verify whether the WSDL document is correctly published:

1. you can use webbrowser to visit the "ReportService2006.asmx" page to see
whether it can display the Webservice info and WSDL document correctly

2. Try using visual studio "Add WebReference" to generate the proxy.

IMO, it does be likely a configuration/publishing issue at the server-side.

If there is any other findings, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
Thread-Topic: Unable to add Web Reference in Visual Studio 2008 on Win
2003 Serv
thread-index: AciroekzZ4eiNiHEQBqCe2LQ4OV6+g==
X-WBNR-Posting-Host: 207.46.19.168
From: =?Utf-8?B?ZXplZ2V0LmNvbQ==?= <ezeget.com2007@xxxxxxxxxxxxxxxx>
Subject: Unable to add Web Reference in Visual Studio 2008 on Win 2003 Serv
Date: Thu, 1 May 2008 08:42:07 -0700


C:\Program Files\Microsoft Visual Studio 9.0\VC>wsdl.exe
http://localhost/_vti_b
in/ReportServer/ReportService2006.asmx?WSDL
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.1432]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: There was an error processing
'http://localhost/_vti_bin/ReportServer/Rep
ortService2006.asmx?WSDL'.
- The document at the url
http://localhost/_vti_bin/ReportServer/ReportService
2006.asmx?WSDL was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Root element is missing.'.
- Report from 'WSDL Document' is 'There is an error in XML document (0,
0).'.
- Root element is missing.
- Report from 'XML Schema' is 'Root element is missing.'.

A thread suggests replacing a line in machine.config but unclear where on
earth to shove
<add verb="*" path="*.vsdisco"
type="System.Web.Services.Discovery.DiscoveryRequestHandler,
System.Web.Services, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>

in there?!!!!

--
Steve G



.



Relevant Pages

  • C# consuming soap webservice (error 400)
    ... Via the Visual Studio I have made a web reference to the wsdl file and ... Now when I try to call one of the webservice functions I get an error ... public int EndGetItemStoc{ ...
    (microsoft.public.dotnet.languages.csharp)
  • C# app consuming webservice : error 400 Bad Request
    ... I'm developing a CF application which consumes an existing delphi webservice. ... Via the Visual Studio I have made a web reference to the wsdl file and ... public int EndGetItemStoc{ ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MSXML2.ServerXMLHTTP
    ... formatting for the request, and parsing for the return result, yourself. ... But the .Net framework provides all the infrastructure you need to call web ... All it takes is to add a web reference to your project within ... Visual Studio. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Web References
    ... I've been working on a small .Net web service in VB using Visual Studio ... I deployed it to a server on my Lan and was able to ... cannot refresh my web reference to my deployed service. ...
    (microsoft.public.vsnet.general)
  • Re: Slow booting xp home.
    ... The microsoft fax one appears twice at every boot. ... The LexBce Server service terminated unexpectedly. ... Windows is loading will come on and then the desktop, ... Visual Studio Source Control and SourceSafe -» ...
    (microsoft.public.windowsxp.perform_maintain)

Loading