473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Add web reference question in Visual Studio?

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,

Apr 23 '06 #1
3 1426
Visual Studio wants to see WSDL. That's the XML document that represents the
information it needs to generate a proxy class.

So for example, you would point it to:

Http://servername/WebServiceRoot/Ser...Name.asmx?WSDL

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"mph140" wrote:
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,

Apr 23 '06 #2
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/Ser...Name.asmx?WSDL
what exactly should I do?

Thanks a lot for your help

Apr 23 '06 #3
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"mph140" wrote:
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/Ser...Name.asmx?WSDL
what exactly should I do?

Thanks a lot for your help

Apr 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pkpatel | last post by:
Hi, I keep getting this error every time I try to load crystalreportviewer on a webform with a dataset. Here is the error: -------------------------------------------------------- Server...
6
by: jemmaq99 | last post by:
Using Visual Studio .NET 2003 I've tried to add a COM reference to a Windows Form project via the Add Reference dialog (specifically the Active DS Type Library) but always get the error message: ...
6
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: "...
2
by: Neil Guyette | last post by:
Hello, All, It would be greatly appreciated if someone could throw me the bone on this question! I'm working on a project in Visual C++ .NET. I'm trying to generate a list of SQL servers that...
10
by: msnews.microsoft.com | last post by:
Hi, How do I add a reference in VC++.NET? In VB.NET and VC#.NET, there's an option in "Project" menu called "Add Reference". This will add a .NET DLL reference to the current project. After I...
1
by: Scott McFadden | last post by:
What is the proper way to pass pointers by reference from managed c++ calls to native c++ calls? In managed C++, I have a pointer to an array of structures, that I pass to a native c++ method by...
1
by: Vipul Pathak | last post by:
Hi Every one, I am working on deployment of a library. When the library installs on a user's machine, I want that the installed assemblies should get listed in the "Add Reference" (AddRef)...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
4
by: Peter K | last post by:
Hi I have a webservice project in Visual Studio, and another project which uses the webservice. My other project has a web reference to the webservice project, created via Visual Studio by...
4
by: Looch | last post by:
Thanks in advance for any help. I'm having trouble with this code: Dim xlsApp As Excel.Application Dim xlsWB As Excel.Workbook xlsApp = New Excel.Application xlsApp.Visible = True ...... ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.