Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ezeget.com - 01 May 2008 16:42 GMT
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?!!!!
               
Signature

Steve G

Steven Cheng [MSFT] - 02 May 2008 03:47 GMT
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@microsoft.com.

==================================================
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@community.nospam>
>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
[quoted text clipped - 23 lines]
>in there?!!!!
>               
ezeget.com - 02 May 2008 09:53 GMT
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
[quoted text clipped - 14 lines]
> >  - 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.

Signature

Steve G

> Hi Steve,
>
[quoted text clipped - 79 lines]
> >in there?!!!!
> >               
Steven Cheng [MSFT] - 05 May 2008 09:48 GMT
Thanks for your reply Steve,

Well, from the webbrowser behavior, that means the wsdl page doesn't
display. Also, the further information about MOSS integrated is very
important. I think the problem is likely due to the MOSS integrated
envirionment. I'll do some further research on this and let you know if I
get any new information.

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@microsoft.com.

==================================================
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
>thread-index: AcisMezRccDUJO4hSL+fGFjK0L0g+Q==
>X-WBNR-Posting-Host: 207.46.19.197
>From: =?Utf-8?B?ZXplZ2V0LmNvbQ==?= <ezeget.com2007@community.nospam>
>References:  <4F559407-B7E9-415E-B2D1-61F7044BC299@microsoft.com>
<ZfFq67$qIHA.1784@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: Unable to add Web Reference in Visual Studio 2008 on Win 2003
>Date: Fri, 2 May 2008 01:53:00 -0700

>Steven,
>
[quoted text clipped - 44 lines]
>> >in there?!!!!
>> >               
Steven Cheng [MSFT] - 07 May 2008 08:56 GMT
Hi Steve,

After discussing with other SQL Engineers, they think that the problem is
likely due to the SSRS integration with SPS has something not configured
correctly. They'll suggest you try go through the steps for configuring
reporting service with MOSS/WSS, here I pasted the suggested steps from
them:

STEP 1:
-----------
Installing Reporting Services:
========================
We can install SQL 2005 Server with all the features or install just the
Reporting
Services. In order to get the integration feature in Reporting Services we
need to
install SP2 for Reporting Services.

Installing MOSS / WSS3.0 on Reporting Services SERVER1
==============================================
Install MOSS / WSS3.0 on SERVER1.

Installing SharePointRS Add-in:
=========================
Download the Add-in
<http://www.microsoft.com/downloads/details.aspx?familyid=1E53F882-0C16-4847
-B331-132274AE8C84&displaylang=en>

We need to install the Add-in on SERVER1

STEP2:
----------
Create New Web App on the MOSS / WSS3.0 server:
==========================================
We need to create Web App before we could configure any thing Further.

Configuring Reporting Services for SharePoint Integration:
==============================================
- Open ?onfigure Report Server?from the SERVER1.
- From ?eport Server Virtual Directory?Create a new Web Site for Report
Server with a Different Port.
- We can Skip the ?eport Manager Virtual Directory?
- From ?indows Service Identity?Use the SharePoint Services account to
configure the ?indows Service Identity?
- From ?eb Service Identity?created a new AppPool for the Report Server web
site. Make sure you use the SharePoint Services account.
- Next step is to create a Reports Database on the Database Server. While
creating a New Reports Database make sure you create it with ?harePoint
Integrated?Mode.
- Once all these steps are complete the ?harePoint Integration?shows up
with tick next to saying that the integration is configured with SharePoint.

Now to confirm the configuration browse to the reports server web site
which you created Ex : <http://SERVER1:8080/ReportsServer>
You now should be able to browse to the report server and it should display
the web app which we created earlier.

Configure SharePoint Central Administrator Site for Reporting Services:
========================================================
- From the Application management -> Reporting Services -> Click on ?anage
Integration Settings?
- Type in the report server URL and Select Windows Authentication. Click
OK- Now select the ?rant Database Access?and then type in the Reporting
Services Server name and then click OK. Then it would prompt for User name
and password. Specify the user account. This account I used to retrieve the
Reporting services from the SERVER1. I would use the SharePoint Services
account since I have using a sigle account for integrating.
- Click on the ?et Server Defaults?you should see the defaults value for
the Reporting Services.

Configure the SQL Reporting Services Web Part on the Portal:
=================================================
Now we can add the SQL Reporting Services Web and you should be able to get
it working fine.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

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@microsoft.com.

==================================================
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.

--------------------

>From: stcheng@online.microsoft.com (Steven Cheng [MSFT])
>Organization: Microsoft
>Date: Mon, 05 May 2008 08:48:11 GMT
>Subject: RE: Unable to add Web Reference in Visual Studio 2008 on Win 2003

>Thanks for your reply Steve,
>
[quoted text clipped - 84 lines]
>>> >in there?!!!!
>>> >               
ezeget.com - 09 May 2008 11:28 GMT
Hi Steven,

Thanks for your posting. In fact everything was already set up and the only
thing I ended up doing was removing the failed Web Reference and re adding it
with a different name. Doing that a couple of times then made it work!
Dont understand why really!

Signature

Steve G

> Hi Steve,
>
[quoted text clipped - 190 lines]
> >>> >in there?!!!!
> >>> >               

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.