Adding a Web Reference into a Windows Project

J

Jerry Spence1

I have a windows based VBNet project and someone has written a small SOAP
program that is called FileUpload.asmx. I want to add a reference to this in
my project, but when I add a reference the default extensions I am allowed
to add do not include .asmx. So I thought of adding a web reference, but it
says that there are no web services on my machine to add. I started up IIS
in case that was the problem, but I still get the same result. I even copied
all the FileUpload components into the wwwRoot folder but still no joy.

How do I do it?

-Jerry
 
T

Theo Verweij

To add a web reference:

Menu Project - Add Web Reference
Next, type in the url for the webservice (must be running!) like
http://server/FileUpload.asmx
Press Ok.

To test if your url is correct, type it in the internet explorer. You
should get a page explaining the service. If not, your url is incorrect,
or the webservice is not running.
 
J

Jerry Spence1

Thanks Theo - what do you mean by the "web service". I have IIS running and
I have put all the files into the wwwroot folder. Should this be sufficient?

-Jerry
 
T

Theo Verweij

The asmx is the webservice.

If putting the files into the www root is sussicient, you can tell by
browsing this file with the internet explorer. (http://<machine where
your iis is running/FileUpload.asmx

You should get a webpage explaining the webservice (asmx).

If not, your webservice is not configured correctly - see microsoft
documentation.
 

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

Top