如何在asp.net C#中将Web服务在线添加到托管网站 [英] How to add webservice to hosted website online in asp.net C#

查看:127
本文介绍了如何在asp.net C#中将Web服务在线添加到托管网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有一个已经在线托管的网站,现在我想向我的网站添加一个webserivice,以便其他人可以使用该服务.谁能告诉我怎么做.


谢谢
Santhosh

Hi I have a website already hosted online, now i want to add a webserivice to my website so the service will be used by others. Can any one please tell me how to do it.


Thank you
Santhosh

推荐答案

是:-)并检查以下关键字/线索,例如在其他网站应使用您网站上的网络服务时可能出现的问题:

关键字是:
-跨源资源共享(CORS)

如果您使用诸如asmx之类的设置快速的Web服务.以下是一些线索:
http://stackoverflow.com/questions/8820351/calling-cross- domain-asmx-web-service-using-javascript [ ^ ]

.
Yes :-) and check out the following keywords/Clues about problems that can arise when for example other websites should be using the webservices on your website:

Keywords are:
- Cross origin Resource sharing (CORS)

If you use a fairly fast-to-set-up webservice like asmx. Here are some more clues:
http://stackoverflow.com/questions/8820351/calling-cross-domain-asmx-web-service-using-javascript[^]

.


这篇关于如何在asp.net C#中将Web服务在线添加到托管网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆