In my Interface level 4 methods, now first 2 methods are only accessible for 1st client,
last 2 methods accessible another client how to restricted .
Please solve this my Problems, i am waiting for your solutions
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 attend4days leftRegister
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 18, 2013, 12:11 PM EDT
If you create proxy class for your service by yourself using 'svcutil' command, then it's easy. Create a proxy using svcutil.
On success, that will have 4 methods. Then remove 2 interfaces (which you don't need) and use this partial proxy class for one client and do similarly for other.
But if you add a service reference, then we need to think how to supress two interfaces for one client...
bn raju45 reputationPosted Jul 18, 2013, 10:49 PM EDT
with out update the refernce , how can client know's the Newly implemented method Name?
Is there any way to know the Method Name---?
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 19, 2013, 6:00 AM EDT
So to get the new proxy either go by updating reference or get by svcutil command.
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 22, 2013, 10:44 AM EDT
bn raju45 reputationPosted Jul 22, 2013, 10:06 PM EDT
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 22, 2013, 10:58 PM EDT
Now suppose, a new interface is added on your service side, then client can access that newly added interface only by updating its proxy. In order to update the proxy, either you may need to run again svcutil command OR updating the service reference (if you have added a service reference already)
As per MSDN:
The WCF client proxy can be generated manually by using the Service Model Metadata Utility Tool (SvcUtil.exe) for more information see, ServiceModel Metadata Utility Tool (Svcutil.exe). The WCF client proxy can also be generated within Visual Studio using the Add Service Reference feature
refer to link, how to consume service in client using service reference:
http://msdn.microsoft.com/en-us/library/bb655893%28v=vs.90%29.aspx
and another link where client is using svcutil command:
http://msdn.microsoft.com/en-us/library/ms734691.aspx
Hope this will help you to understand the WCF basics...