连接到2个不同的服务器 [英] Connecting to 2 different servers

查看:86
本文介绍了连接到2个不同的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个不同的服务器(不同的IP地址)。他们正在运行IIS。他们都有访问数据库。第一台服务器包含一个网站。



使用我的网站连接到其他服务器的最简单方法是什么?我的目标是将信息发送到另一个服务器上的页面。他们怎么能互相沟通。(*******************请不要删除这个。这是我的谦卑请求***)

I have two different servers (different ip addresses). They are running IIS. They both have access databases. The first server contains a website.

What is the simplest way to use my website to connect to the other server? My goal is to send information to the page which is on the other sever. How can they communicate with one another.(*******************Please don''t delete this.It''s my humble request***)

推荐答案

您可以通过多种方式与两台Web服务器进行通信。

1.您可以从一个Web应用程序创建Web服务并从其他Web应用程序中使用它。 br />
2.您可以从一个Web应用程序创建wcf服务并从其他Web应用程序中使用它。

3.您可以从一个Web应用程序创建asp.net web api并调用和接收来自其他人的数据。

4.您可以在Web应用程序页面内创建一个方法,并使用具有唯一URL的其他Web应用程序调用该方法。
There are many ways you can communicate 2 web servers.
1. You can create webservice from one web application and consume it from others.
2. You can create wcf service from one web application and consume it from others.
3. You can create asp.net web api from one web application and call and receive data from others.
4. You can create a method inside a web application page and call that method with other web application with unique url.


这篇关于连接到2个不同的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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