简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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