wcf

ExchangeWebServiceMailBinding And WCF Hosting

I'm looking at using ExchangeWebServiceMailBinding for pushing data to Windows Mobile devices in an upcoming project. I've run into two things that I cannot find in Google. How does the MailBinding on the server side act in different WCF hosting conditions (IIS hosted vs self hosted)? From the samples, I know it does poll the server fr...

Encrypt the configuration group System.ServiceModel in App.config

We are deploying a client app and need to encrypt the system.serviceModel configuration group. I have been searching on StackOverflow for the better part of the day for the best way to do this and most responses have either been "rename app.config to web.config, encrypt with the ASP.NET utilty, and deploy" or "override the install metho...

form authentication in WCF 4.0

Hi all Is PrincipalPermissionAttribute only work on window login authentication? I would like to check the caller (currently only my website aspx pages) of my web service has passed my login authentication and is in the right membership rule, and I am using the asp.net membership provider. What is the best and microsoft recommand way to...

WCF Service can not be accessed from another machine?

I have deployed wcf services in machineA and tried to accessed it through wcftestclient which is another system machineB. But i am getting error "The caller is not authenticated by wcf service". This wcf services is working fine when i testing it in machineA itself. I have used wsHttpBinding. How to solve this? Please help me. ...

WCF authentication using certificate which don't have public key

I am hosting a secured WCF service which is a wrapper over an existing ASMX service. My service needs have certificate authentication (transport level security, same as in the original service). My problem is that the users will be using client certificates issued by original service And not my new certificates. To my knowledge you c...

WCF Data Services How do I add Business Logic or use existing CSLA objects

First of all, this is my first Stack Overflow question so apologies in advance if I get this wrong! I'm working on creating a service endpoint for a CRM database used internally. Several applications want to read and write to this database so exposing a WCF service seemed like the best approach. I started off using the Entity Framework...

What is concrete implementation?

Hello I saw lot of posts in StackOverflow and elsewhere talking about concrete implementation. While fiddling with WCF i came through the line Tying your service implementation, or any “service based” class to a concrete implementation is never a good idea. Can anyone explain what Concrete Implementation is? Regards NLV ...

There was an error generating the XML document when using Windows authentication pass-through

I've set up a basic http WCF Service and my application in IIS is configured to use Windows Authentication. The bindings therefore have the following security settings: <security mode="TransportCredentialOnly"> <transport clientCredentialType="Windows" proxyCredentialType="None" /> <message clientCredentialType="Certificate"/> ...

How to consume Session dependent WCF services using Ksoap2-Android

I am using Ksoap2-Android for consuming the WCF Services. For the dotnet client we keep the allowCookies="true" in our binding configuration and it sends the same sessionid and keeps my sessions intact in my WCF services (My services are interdependent and use the sessions). Any one know any such setting for ksoap2-android, that will a...

Using WCF with abstract classes

How do I define DataContract for abstract classes in WCF? I have a class "Person" which I communicate successfully using WCF. Now I add a new class "Foo" referenced from Person. All still good. But when I make Foo abstract and define a sub class instead it fails. It fails on the server side with a CommunicationException, but that doesn...

Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme

I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to provide the correct authentication. I am aware that WSE 3.0 might make it easier, but I would prefer not to revert to an obsolete technology. ...

Can't pass in "%26" to a WebGet UriTemplate variable in a WCF service?

I have a WCF service with this declared operation: [WebGet(UriTemplate = "Test/{*testString}")] public String Test(String testString) { return testString; } However when attempting to invoke the URL Test/You%26Me, IIS returns an error: A potentially dangerous Request.Path value was detected from the client (&). My goal is to al...

WCF Session Service hosted in ASP.NET MVC 2.0 application

Hello, I have a must to host WCF Service using WCF Session mechanism. I've read http://msdn.microsoft.com/en-us/library/ms733040.aspx but it is not enough... My simple scenearion: I have solution with 4 projects. First - SessionWCF.Base, it is simple Class Library that contains base interface IServiceBase for my service. using Syst...

VB6 COM - WCF Duplex Communications?

I am currently working on a solution to allow multiple Visual Basic 6 applications to talk and sync with each other. My background is mainly managed C#, but I have a little background with VB6 and C++ and is why a pure managed solution would be optimal for me. Windows Communication Foundation (WCF) was my first choice, but I am struggl...

Request and response types in WCF

I see a huge number of request and response types in a project to cater for all the endpoints exposed as WCF services. This seems like an awful lot of repetitive, simple code to maintain. Can these types be auto-generated or avoided altogether using something like attributes? ...

Multiple endpoints for single contract in WAS-hosted WCF service?

If one needs to expose multiple endpoints (e.g., one with basicHttpBinding, and another with netTcpBinding) for a single contract in a heterogeneous environment, on a WAS-hosted service, how does one do it? Everything I've read about WAS configuration of endpoints indicates that endpoint addresses and host base addresses should be left ...

WCF - Error Trying to Receiving Large List of Data (~5000 objects)

I am attempting to transfer around 7000-8000 objects that are not large (only 9 properties per object instance). Does anyone know why when I begin to retrieve more than 5000 or so objects that I get connection errors? It works perfectly until I hit some threshold for data size. I am exposing the retrieval of these objects via WCF's TCP ...

WCF Service Operation does not expose data as queryable

I have a service operation of the form: [WebGet] public IQueryable<BusinessObject> BusinessObjectsByType(string name) with access rule config.SetServiceOperationAccessRule("BusinessObjectsByType", ServiceOperationRights.All); When I access this service operation through a web browser, it exposes the data but not in feeds and entrie...

How do I get a end-user friendly message to propagate when an the wrong type parameter is passed to a WCF web service?

Let say I have a WCF Foo(int param); The client is passing in a JSON string. Instead of passing in an integer, they pass in a string. The system now returns a 500 error back to the client. The event log says that I need to add includeExceptionDetailInFaults="true" to my config file if I want a friendly message to be returned. I go a...

Setting the detail field of a `FaultException` without object serialization

I'm trying to adapt a framework originally written for WSE to WCF. The framework sometimes throws SoapExceptions from deep in its bowels, which I would like to catch and transform into FaultException objects that the WCF framework will handle. In order for the existing clients of this framework to continue working, I need the <detail> f...