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.
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.
Hemant SrivastavaPosted Jul 23, 2013, 2:58 AM
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...
bn rajuPosted Jul 23, 2013, 2:06 AM
Hemant SrivastavaPosted Jul 22, 2013, 2:44 PM
Hemant SrivastavaPosted Jul 19, 2013, 10:00 AM
So to get the new proxy either go by updating reference or get by svcutil command.
bn rajuPosted Jul 19, 2013, 2:49 AM
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 SrivastavaPosted Jul 18, 2013, 4:11 PM
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...