I have created a web service using C# and I have installed IIS Server 6.0. When I am running web service directly in project its working well.
Now I want to deploy this service on my system’s IIS Server so that my LAN partners can use it. How should I do that? And I want to change default port number of IIS too, how can I do that?
I have created a web service using C# and I have installed IIS Server
Share
To run your web service under
IIS, setting up a virtual directory is pretty straightforward.If you’re looking to test publish a build, the web deployment project is the best option, you can do it from the command line and in VS.Net, it enables a
"Publish" right-clickoption.Your web service endpoint is your
.asmxfile (no.csfile required in your deployment), and theDLLin the bin folder contains the code that you wrote for your webservice.SOAP, WSDL, Namespaceare all handled by IIS and ASP.NET.In simple words:
"ASP.NET Web service"."HTTP"from location dropdownlist (indicates that the file should be placed on a web server)"browse UDDI Servers on the local network"option if you want to share the web service among different computer. Enter the source.asmxfile URL and click"Go"."Add References"to add your reference name for web service, by default is"localhost", you can give it a name.