Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Consider the scenario where WCF service with
TransferMoney(SourceAccno,DestAccno)

Where above service transfer money from source accnumber to destination accnumber.
Whereas service is checking whether the request is coming from specified IP address of client.
But if another exe is running on same machine of client , which IP is same and using same app.config of orinigal client exe.
In that Scenario how can WCF service ensure the request processing for valid client .
client is outside the firewall of Server where the service is host.
Posted
Updated 30-Sep-14 19:16pm
v2

1 solution

1.To secure you WCF service you should use netTcpBinding by using security mode TransportWithMessageCredential, that have both the transport and the message with clientCredentialType settings Certificate. And in this way you will use a very fast and also a very secure communication channel based on SSL certificates.

2.Other solution could be based on HTTP binding based on SSL transport (the trasport settings similar with above) but this is math slower.
 
Share this answer
 
v2
Comments
vishal_h 1-Oct-14 1:15am    
Can i used netTcpBinding as client is outside the firewall of Server where the service is host.
Raul Iloc 1-Oct-14 1:25am    
Sure that you can, I did that in some of my work products!
Normally the WCF service, for netTcpBinding should be installed on the server as windows service, and the client could be any type of application that are running over the internet or in the same local area network; so the WCF clients could be web applications, windows forms application, WPF applications, other windows services,etc.

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