简体   繁体   中英

Host a Web Service in IIS with Sharepoint using Port 80

I have a Sharepoint Server, I published an asp.net Web Service and I want to host it in IIS. Port 80 is being used by Sharepoint. How do I host this web service on my local machine successfully? Thanks

You don't, you cannot host 2 different things on the same port. However, you could host the web service within SharePoint. Do the following:

  • Copy the .dll file of the web service in the GAC ( global assembly cache C:\\windows\\assembly )
  • Copy the .asmx file in the LAYOUTS folder ( C:\\Program Files\\Common Files\\Microsoft Shared\\Web Server Extensions\\14\\TEMPLATE\\LAYOUTS )
  • iisreset
  • access the web service http://sharepointserver/_layouts/myservice.asmx

If you have a different domain name for you web service, you should create another binding for it.

Just create new IIS application, go to Binding options, put "myservice.com" (should be different from your share point site domain) and port 80;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM