I have a WCF service project where I've implemented custom basic authentication by following the guidelines here, and all is working great! However, I can't find if there is a way to deny unauthenticated users access to only specific endpoints.
In my project, I have about 5 endpoints and only want users to be authenticated against a cou...
For my WCF services I've implemented an IAuthorizationPolicy and hooked it up (and can confirm that it's being used).
In the Evaluate() method I am setting a custom principal like so:
evaluationContext.Properties["Principal"] = myCustomPrincipal;
However, when the service is invoked, Thread.CurrentPrincipal is a GenericPrincipal!
My...
Edit: When I execute test the service with a client I get a response. I should not get a response. What should happen is CertificateValidator.Validate() should throw an exception because there is no certificate being sent. I KNOW it is not being called because if I get it to throw an exception without making any tests it still doesn't. S...
I have written a service that I would like expose both via rest and soap. Everything I read about WCF 4.0 says that I just need to expose 2 endpoints with differing behaviors to do this. But I cannot get it to work.
Here is my service contract:
[ServiceContract]
public interface MyService
{
[OperationContract]
[WebGet(UriTemp...
Hi all. I'm trying to use WCF named pipes in a web site, and it's failing with errors:
There was no endpoint listening at net.pipe://localhost/mypipename that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
and the InnerException:
The pipe name co...
I am struggling with this duplex WCF service which makes calls to the service to get large amounts of data.
I am using wsDualHttpBinding which works but is very slow. I profiled and most time is being used by Serializers and authentication process. So I decided to use Binary Encoding and change the Security to Transport and since it is a...
So i am on VS2010 running iis 7 with .net 4.0
I have a REST wcf 4.0/.net 4.0 services that runs locally very beautifully. On my local it is hosted on IIS at
http://localhost/SOMENAME/
[WebGet(UriTemplate = "Ping")]
public string CheckAuthenticatedStatus()
{
string userName;
if (!AuthenticateUser(out userName))...
Hi All,
I'm getting a List back from a WCF service and I want to set it to be the datasource for a grid. When I databind I get the error that "Deviceheader" is not a property of someObject.
<td><%# Eval("Deviceheader.DeviceID") %></td>
That is true, it's not a property, it's a public field
public class someObject(){
public Devic...
I am new to WCF but have been working on asmx services for a while.
We have an effort underway where we want to introduce a service layer between our UI/aspx pages and Database Layer. Most of the business logic exists in codebehind. So the current setup is UI/aspx->DAL->Database. We want to do UI/aspx.vb->WCF->Business Layer->DAL->Datab...
I need to implement transport security with certificates to secure my client and service. I am absolutely confused by server certificate, client certificate and mutual certificates. I am using tcp endpoint for communication and the client and service is hosted in windows service.
Could someone please throw some light on difference betwee...
I have a scenario in which I have to call a WCF Service from VBScript (yes I know this is sad!)
Now I know that when you instantiate a proxy to the service in .Net code, that first call may take 10 to 20 seconds longer as WCF bootstraps the channel between the proxy and the service. Once that is done, all calls through that same proxy a...
Hi
I am developing a Window Form Application Form Application is using WCF to get data from db servers. My Clinet'd like to see users who are currently using application. I means
Administrator want to get administrative page to who all user IDs currently connected to WCF Server. I don't know how to get this. I think i can catch userID...
Hi,
I have a workflow service created with WF 4.0 and the need to have a typical WCF decorated interface extracted from it, containing all operations. I need it for testing purposes.
Is there a way to extract a decorated interface from a workflow service?
Thank you
...
I am beginner in the Windows Communication Foundation. I am reading about it. I am little bit confused with the word 'Windows'. WCF can be used for building the web services for window application as well as web application. Then what is meaning of the word 'Windows' in WCF ? Why we are calling it as a 'Windows' Communication foundation ...
I'm trying to host a WCF service inside a console app using Castle-Windsor 2.5 (.NET 4) with the following code:
new WindsorContainer()
.AddFacility<WcfFacility>()
.Register(
Component.For<IMyService>().ImplementedBy<MyService>()
.ActAs(new DefaultServiceModel()
...
EDIT
Ok, I've got it, it's not serializable.........so, how do I go about serializing it?
Scenario
I have a custom BindableDictionary
that I use to bind with a grid
control for automatically updating
the grid when the underlying
datasource changes.
I now want to extend my application
to use WCF, so that when the
server-side has fin...
Hi,
I have Windows Identity Foundation based WCF service. I have issues with interoperability because it seems to be kind of hard to implement PHP or Perl client for such service due to all WS-* protocols.
Currently it works like this:
Client authenticates at STS (using username and password) and receives SAML token containing requir...
Hi folks. I'm having problems with impersonation in WCF. Namely, I'm calling a named pipe service from within ASP.NET with impersonation turned on. This fails (due to permissions on the pipe blocking anyone from the network). So, is there any way I can make the call outside of the impersonation context? I don't need to be impersonating t...
Hi all,
Let's say that I have specified the following WCF REST Service at the address "http://localhost/MyRESTService/MyRESTService.svc"
[ServiceContract]
public interface IMyRESTService
{
[OperationContract]
[WebInvoke(
Method = "POST",
UriTemplate = "/receive")]
string Receive(string text);
Now I can call my REST service in Fid...
I've a class like this
class MainClass
{
AssociatedClass b;
}
It's in a Silverlight RIA solution and the DomainService is LinqToEntitiesDomainService.
I've an instance of AssociatedClass called AC and its already in the DB.
Now say I want to create an instance of MainClass on client like this
MainClass MC = new MainClass();
domain...