RE: Unable to add Web Reference in Visual Studio 2008 on Win 2003 Serv
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Fri, 02 May 2008 02:47:56 GMT
Hi Steve,
From your description, you're encoutering some problem when try addingreference 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 Win2003 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
0).'.
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,
- 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
.
- Follow-Ups:
- RE: Unable to add Web Reference in Visual Studio 2008 on Win 2003
- From: ezeget.com
- RE: Unable to add Web Reference in Visual Studio 2008 on Win 2003
- References:
- Unable to add Web Reference in Visual Studio 2008 on Win 2003 Serv
- From: ezeget.com
- Unable to add Web Reference in Visual Studio 2008 on Win 2003 Serv
- Prev by Date: Re: Performance problem with an ASP.NET application - XP far quicker than W2K3 Server!
- Next by Date: Trouble Using Sample Code - Need Noob Help
- Previous by thread: Unable to add Web Reference in Visual Studio 2008 on Win 2003 Serv
- Next by thread: RE: Unable to add Web Reference in Visual Studio 2008 on Win 2003
- Index(es):
Relevant Pages
|