Connect multiple server by webservices from asp.net

拈花ヽ惹草 提交于 2019-12-25 06:46:13

问题


Thanks for reading my question.I wondered if you have any idea about this problem.

  1. I wrote a SOAP-SERVER. Running it at CentOS. Changing Soap-Server's IPAddress for match with CentOS Ifconfig.

  2. Running SOAP-SERVER in CentOS.

  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.

  4. Developer will use these function for do something at 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.

Do you have any idea? Thanks for helping by anyway.Thanks


回答1:


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. 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.



来源:https://stackoverflow.com/questions/13244829/connect-multiple-server-by-webservices-from-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!