Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
salam
i created a programe(clent-server)to send video and chat via web service.till now everything is ok because im using it in one PC.but my problem how can i make it work with 2 PC some1 told me that i have to use iis and must configur it to work.and my problem is how can i control the ip adress it means that i have to use textbox to set the ip and change when i want but i didn't find where i put this textbox i found only in app.config adresse:http://localhost/service.asmx. so is it possible to make in app.config http://textbox/service.asmx.
i hope that u will understand what i want.
best regards
Posted

1 solution

As I understand it from the question, both client and server parts is yours, both in .NET. Is so, the classical Web service would be a lame (or a hassle, the obsolete thing). You should better use WCF. Microsoft maintains that Web services (non-WCF) should be considered obsolete for all new development, and I would agree, adding that the obsolete Web services might be needed for interoperability with other systems (Java-based and a lot more). If this is not your case, certainly use WCF.

Now, should you host WCF in IIS? It really depends. If you are already using IIS as a Web server, for example, you can use it for hosting WCF. If hosting of WCF is the only purpose of IIS, you should know that you can quite easily self-host WCF in the service application (presumably, a Windows service).

Please see:
http://msdn.microsoft.com/en-us/library/bb332338.aspx[^],
http://msdn.microsoft.com/en-us/library/ms733766%28v=vs.100%29.aspx[^].

Good luck,
—SA
 
Share this answer
 
Comments
sidali.kadi 18-Aug-12 14:03pm    
yes both client and server parts r mine and my case is interoperability with other systems and this project is must be with web service not with smth else.anyway thx for ur help but im still waiting for the best answer
Sergey Alexandrovich Kryukov 18-Aug-12 22:08pm    
OK, then my advice should work for me.
Good luck,
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900