如果我的网站想与其他网站沟通,谁可以提供网络服务? [英] who make web services if my website want to communicate with another website?

查看:79
本文介绍了如果我的网站想与其他网站沟通,谁可以提供网络服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我的网站想要与其他网站进行通信,谁会提供网络服务?如果第三方提供Web服务我们如何使用它?请解释一下Web服务流程。

解决方案

请参考链接





首先给你的解决方案提供asmx文件参考,你可以访问其中的web方法。


1.如果您使用的是第三方Web服务或自己的服务,则您站点与Web服务之间的通信是相同的。您只需在Visual Studio中添加对Web服务(URL)的引用,这将自动生成Web应用程序与Web服务通信所需的存根。

2然后,在Web应用程序代码中,您必须包含与Web Service相关的using语句,并且可以使用Web Service提供的方法。

3.要创建自己的Web服务,您可以看到上面的第一个解决方案或在MSDN上搜索。


Hai

如果你使用web服务在ur数据库中使用ur web服务方法添加,插入,选择或更新数据,同样的webservice方法可以用于添加,插入,选择或更新你的数据库中的数据或使用其他网站自己的数据库。只需传递你的web服务页面或你通过或web服务链接到其他网站。

使用网络服务可以共享或沟通数据库或自己的数据库不共享你的网站,而是他们写插入,选择,更新或删除查询使用ur web服务方法,只需在ur web服务方法中传递参数


who make web services if my website want to communicate with another website? If third party make web services how we use it? Kindly explain web services process.

解决方案

Please refer the Link


First give asmx file reference to your solution they you can access the web methods in that.


1.If you are using a 3rd party Web Service or your own service, the communication between your site and the web service is the same. You simply have to add in your web application from Visual Studio the reference to the web service (URL), and this will automatically generate the stubs needed by your web application to communicate with the Web Service.
2.Then in your web application code, you have to include a using statement related to the Web Service, and you could use the methods provided by the Web Service.
3.To create your own web service you could see the first solution above or search on MSDN.


Hai
if u use web service for add,insert,select or update data in ur database using ur web service method,the same webservice method can use for add,insert,select or update data in ur database or own databse using others website.just pass ur web service page or u pass or web service link to other website.
using web service can share or communicate database or own databse not share ur website,instead they write query for insert,select,update or delete just use ur web service method, just they pass parameter in ur web service method


这篇关于如果我的网站想与其他网站沟通,谁可以提供网络服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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