Add web reference question in Visual Studio?

M

mph140

Hi,

I wonder if someone can help me with this beginner's question. When I
add a web referenece to my C# projecct - using Add Web Reference -
local machine. where and how does VS search and display those web
services? There are some old web services displayed but not valid(I was
creating and might deleted them in a wrong way). And they are not under
the web site folder and not seen from IIS either. It was pretty
annoying they keep coming back when I try to add a new web reference to
my project,

Thanks,
 
M

mph140

Peter, sorry I am not sure I am getting this. Do you mean the
services populated when I do Add Web refererence is stored in a WSDL
Xml file? I am only working on my locall PC for now so I suppose able
to find this WSDL xml file contains those unwanted services? And when
you say Http://servername/WebServiceRoot/ServicePageName.asmx?WSDL
what exactly should I do?

Thanks a lot for your help
 
G

Guest

OK,
As I mentioned, Visual Studio wants to see the WSDL XML contract that is
generated by the current webservice. It uses this to compile a proxy class.
You can do the same thing by running the WSDL.EXE utility against the WSDL
XML file and see how it works.

In order for an ASP.NET Webservice to work, there needs to be an IIS Virtual
Directory (IIS Application) for it, at least one .asmx file which represents
the endpoint for the WS, and a class file behind that with at least one
method attributed with the [WebMethod] directive.

All this stuff is in the documentation; if you aren't familiar with how it
works, an hour or so taken out to read up on it now will save you a lot of
time later.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top