HI
Please advice how we can implement only server to server accessable method in WCF.
meaning i want restrict the method call when cleint request from client code.
Please advice.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ibrahim ErsoyRank #106 · 20.6K reputationPosted Jan 8, 2018, 1:43 AM EST
In your scenario, you can implement the server IP address in wcf config file and limit only this one to be able to connect and consume service.
Mukesh NayakRank #1,172 · 1.5K reputationPosted Jan 8, 2018, 2:07 AM EST
We need to learn about various WCF binding available. If your WCF service is getting consumed by client side code that means your WCF service is acting as REST service and it must be having “webHttpBinding”. Now if you don’t want you service to get consumed by client you can choose “basicHttpBinding”, it will act as exactly same as soap service and won’t support any client side consumption of WCF service. Now each binding has got its own advantage and limitation.
For more information please refer following link:
“http://www.c-sharpcorner.com/uploadfile/pjthesedays/wcf-service-binding-explained/”
“http://www.dotnettricks.com/learn/wcf/understanding-various-types-of-wcf-bindings”
Regards,