views:

122

answers:

1

I have a WCF service deployed in a server machine. We are using claims based authentication to authenticate the WCF service caller. The WCF service is restricted by using IIS Authorization rules.

How do I programmatically invoke the WCF service using .NET? The client app uses a proxy generated using SVCUtil. calling the service reads the credentials from a configuration file (not the app.config file, in fact the client application does not have a *.config file).

A: 

Take a look at this blog posting from LeastPrivilege: http://www.leastprivilege.com/SecuringWCFDataServicesUsingWIF.aspx

While the blog goes into specifics of using WIF the only difference should be the token obtained to access the service.

brianfeucht