Solved

How to reference a SOAP web service in Visual Studio 2008

Posted on 2011-02-16
3
336 Views
Last Modified: 2012-05-11
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
Comment
Question by:JMO9966
3 Comments
 
LVL 10

Expert Comment

by:himanshut
ID: 34913064
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 34914811
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
 

Author Closing Comment

by:JMO9966
ID: 35014018
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question