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



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

  • Re: invoke a webservice with nillable value types
    ... invoke a webservice with nillable value types ... public ParteiVOPage find(ParteiSearchCriteria parteiSearch, int offset, int ... the soap ist correct, but it won´t interpreted by the proxy. ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Setting web service timeout in vb.net
    ... Microsoft MSDN Online Support Lead ... class of the webservice proxy (you generate through "Add WebReference" ... webservice's method call Timeout through the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How does the client of a webservice figure out a complex type
    ... attribute with a hint for the client side proxy this is a DataSet. ... >if the wsdl does not contain any reference, ... >> As for how webservice client figure out a complex type, ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Setting web service timeout in vb.net
    ... you can directly set this "Timeout" property on the ... client-side proxy. ... that your webservice proxy class is derived from "SoapHttpClientProtocol": ... It gives no specific directions and I could not find a ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Webservices sharing types with client Apps (and BLTs :) )
    ... behavior of webservice and its client-side proxy generator. ... And the client application maybe of heterogenous ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.general)