Solved

How to reference a SOAP web service in Visual Studio 2008

Posted on 2011-02-16
3
333 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
Comment Utility
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now