30

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.

Kent Fredric
  • 56,416
  • 14
  • 107
  • 150
Guy
  • 65,082
  • 97
  • 254
  • 325

4 Answers4

31

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
  • 1,987
  • 1
  • 21
  • 28
30
  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.
BG100
  • 4,481
  • 2
  • 37
  • 64
3

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
  • 21,603
  • 7
  • 53
  • 64
1

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

dudeNumber4
  • 4,217
  • 7
  • 40
  • 57