• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

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:

http://localhost/Training/isapi_dcwebservice.dll/wsdl/IDataCollection

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:

http://localhost/Training/isapi_dcwebservice.dll/wsdl/IDataCollection

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()




0
JMO9966
Asked:
JMO9966
1 Solution
 
himanshutCommented:
0
 
CodeCruiserCommented:
In the Add Service Reference box, click on Advanced button. On the result window, click the "Add Web Reference" button in the bottom.


WebRef.jpg
0
 
JMO9966Author Commented:
Thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now