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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mukesh NayakPosted Jan 8, 2018, 7:07 AM
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,Ibrahim ErsoyPosted Jan 8, 2018, 6:43 AM
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.