web服务部署问题

发布于 2024-08-10 23:21:32 字数 76 浏览 2 评论 0原文

我从本地计算机通过 IIS 部署了用 .net 语言编写的 Web 服务,有没有可能访问包含不同操作系统和不同技术的远程 HTTP 服务器

I deployed webservice written in .net language through IIS from my local machine,Is there any possible way to access remote HTTP server which contain different OS and different technologies

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷心人i 2024-08-17 23:21:32

很抱歉让您感到困惑,但是您可以定义:

不同的操作系统和不同的
技术

  1. 您的意思是将您的网络服务部署到另一台主机
  2. 您的意思是使用来自另一台主机的网络服务吗?

选项 1

如果主机未运行 IIS/ASP.NET,我认为您将会遇到一些问题,因为 Mono 可能无法运行您的代码库所需的内容。

但是您可以尝试以下操作:

  1. 将站点发布到文件夹
  2. 压缩该文件夹
  3. scp/ftp/上传此 zip 到远程服务器
  4. 将文件(或上传单个文件/文件夹)解压缩到 IIS 管理配置的目录
  5. 尝试运行

选项 2

您需要使用 svcutil工具来创建代理客户端以使用该 Web 服务,或者使用

希望这能满足您的要求。使用更多信息更新您的问题,以便社区提供更多支持。

Sorry for being confused, but can you define:

different OS and different
technologies

  1. Do you mean deploy your webservice to another host or
  2. Do you mean consume a webservice from another host?

Option 1

If the host is not running IIS/ASP.NET I think you are going to have some issues as Mono may not run what your code base requires.

But you could try the following:

  1. publish your site to a folder
  2. zip up that folder
  3. scp/ftp/upload this zip to the remote server
  4. unzip the files (or upload individual files/folder) to directory configured by IIS Management
  5. try to run

Option 2

You need to use either the svcutil tool to create the proxy clients to consume that webservice or you use the Add Web Reference in Visual Studio to automate this for you.

Hope this answers your requirements. Update your question with more information for the community to offer more support.

世俗缘 2024-08-17 23:21:32

我认为这是网络服务的主要用途之一。

I think that is one of the main things that web services are for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文