Link to home
Start Free TrialLog in
Avatar of JMO9966
JMO9966

asked on

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




Avatar of himanshut
himanshut
Flag of Australia image

ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JMO9966
JMO9966

ASKER

Thanks!