How to reference a SOAP web service in Visual Studio 2008

I'm fairly new to VS2008 and it appears this area has changed a bit from 2005.

In 2005, I would choose the "Add Web Reference" option and then paste in the following path:


I would then declare the web service with this syntax:

Private ws As New localhost.IDataCollectionservice()

With 2008, I see it's now "Add Service Reference" so I did so and pointed to this path:


When I try to declare the ws object, IDataCollectionService is not in Intellisense?? How would I declare this web service in 2008?  Trying to declare this, I get a "Type localhost.IDataCollectionservice is not defined."

Private ws As New localhost.IDataCollectionservice()

Who is Participating?
CodeCruiserConnect With a Mentor Commented:
In the Add Service Reference box, click on Advanced button. On the result window, click the "Add Web Reference" button in the bottom.

JMO9966Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.