views:

5534

answers:

6

I'm trying to add a Web Reference to a VS2008 .Net 3.5 Console Application but the option's not there. The options to "Add Reference" and "Add Service Reference" are there.

+19  A: 

Kirk Evans blogged about that very issue Here

Basically, you just add a service reference. A web reference is just one type of service you can add.

rjrapson
Ah, there it is.
Gordon Bell
+3  A: 

A Service Reference is the same as a Web Reference -- that is, you can add an ASMX web service as a reference and it will generate your proxies/etc. just like Add Web Reference did.

The change is to support WCF and have all remote ("service") references look and act the same in VS.

Guy Starbuck
A: 

thanks i searching for it

+4  A: 

1) Right click References and click 'Add Service Reference' 2) In the Add Service Reference dialog click Advanced 3) In the Advanced Dialog click 'Add Web Reference' 4) Continue as you normally would for an asmx web service.

A: 

Hello,

I tried to do this (VS2008, .NET 3.5 SP1): Add a Service Reference to my solution, clicked 'Advanced' in the Service Reference dialog, clicked 'Add Web Reference' , pasted the WSDL URL and 'go'. Now I can see the methods contained by the web service. But I cannot add a web reference name. In the box "Web services found at this URL" is a message: "The HTML document does not contain web services search information".

What is wrong?

Thanks for any hints! Alex

A: 

I think you need to pass the url to the asmx, not the wsdl

dudeNumber4