简体   繁体   English

通过ASP.NET的Web服务连接多个服务器

[英]Connect multiple server by webservices from asp.net

Thanks for reading my question.I wondered if you have any idea about this problem. 感谢您阅读我的问题。我想知道您是否对这个问题有任何想法。

  1. I wrote a SOAP-SERVER. 我写了一个SOAP服务器。 Running it at CentOS. 在CentOS上运行它。 Changing Soap-Server's IPAddress for match with CentOS Ifconfig. 更改Soap-Server的IP地址以与CentOS Ifconfig匹配。

  2. Running SOAP-SERVER in CentOS. 在CentOS中运行SOAP-SERVER。

  3. Using VisualStudio tools for AddWebReference .It'll auto generate a define object class.In this class,It containt all of function of SOAP-SERVER. 使用VisualStudio工具进行AddWebReference。它将自动生成一个定义对象类。在该类中,它包含SOAP-SERVER的所有功能。

  4. Developer will use these function for do something at ASP.Net-Client. 开发人员将使用这些功能在ASP.Net-Client上执行某些操作。

But,When I want to connect from ASP-NET to more SOAP-SERVER(in other CentOSs).And we musn't using AddWebReference .Because User will use web form for input IPAddress of these SOAP-SERVER. 但是,当我想从ASP-NET连接到更多的SOAP-SERVER(在其他CentOS中)时。我们不使用AddWebReference。因为用户将使用Web表单来输入这些SOAP-SERVER的IPAddress。

Do you have any idea? 你有什么主意吗? Thanks for helping by anyway.Thanks 仍然感谢您的帮助。

You'll have to keep a fixed no. 您必须保持固定编号。 of servers with same IP addresses, otherwise each time you want to access a service you'll have to change the Service proxy classes or service reference in visual studio for that matter. IP地址相同的服务器,否则每次您要访问服务时,都必须在Visual Studio中更改服务代理类或服务引用。 What you can do is instead of letting the user enter the IP address, display a list all that you have and make him select one. 您可以做的就是代替让用户输入IP地址,显示所有列表并让他选择一个列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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