wcf

WCF Named Pipe IPC

I have been trying to get up to speed on Named Pipes this week. The task I am trying to solve with them is that I have an existing windows service that is acting as a device driver that funnels data from an external device into a database. Now I have to modify this service and add an optional user front end (on the same machine, using ...

How to ignore timezone of DateTime in .NET WCF client?

WCF client is receiving a Date value from a Java web service where the date sent to the client in XML is : <sampleDate>2010-05-10+14:00</sampleDate> Now the WCF client receiving this date is in timezone (+08:00) and when the client deserialises the Date value it is converted into the following DateTime value : 2010-05-09 18:00 +08:00...

WCF service The maximum array length quota (16384) has been exceeded

I have a wsf service and a client application. While trying to communicate the client and the service I've gotten the following message: "The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:blob. The InnerException message was 'There was ...

Silverlight synchronous calls to the wcf

I'm trying to make calls sync. But silverlight app locks itself when calling endList method. In a simple console app i can make async to sync. Could not see the problem. var svc = new WcfServiceClient(); var ar = svc.BeginList(null, null); var result = svc.EndList(ar); <-- Silverlight hangs here listBox.ItemsSource = result; ...

Help me to find a better approach-Design Pattern

I am working on an ASP.Net web application in which several WCF services are being used. At client level, I am creating channel factory mechanism to invoke service operations. Right now, I have created an assembly having classes used for channel factory creation code for every service. As per my assumption this is some sort of facade pat...

MessageSecurityException: The security header element 'Timestamp' with the '' id must be signed

I'm asking the same question here that I've already asked on msdn forums http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/70f40a4c-8399-4629-9bfc-146524334daf I'm consuming a (most likely Java based) Web Service with I have absolutely no access to modify. It won't be modified even though I would ask them (it's a nation w...

WCF high instance count: anyone knows negative sideffects?

Hi there! Did anyone experience or know of negative side effects from having a high service instance count like 60k? Aside from the memory consumption of course. I am planning to increase the threshold for the maximum allowed instance count in our production environments. I am basically sick of severe production incidents just because ...

WCF Service in Seperate Assembly

What is the correct way to create a WCF service in separate assembly but then expose its endpoint through a Web Project in the same solution? ...

WCF : Is it possible to move all service settings outside the config file, and in the code?

I have a WCF that is in use now for over a year, coded by someone else and i'm trying to refactor it but the way the folder structure is organized and the svc.cs file containing the methods is not what I am used to from WCF samples I completed. Here is what I'm trying to achieve. Since none of the settings changed over the last year I a...

WCF REST - How can i test WebCache

I'm trying to test my REST service with WebCache attribute [ServiceContract] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public partial class MyContract : IMyContract { [OperationContract()] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "items/{cod...

WCF Data Service and ChangeInterceptor

I would like to look at and modify the information submitted via the PUT verb inside a changeInterceptor. For instance I might want to scrub all values passed in before updating my dataSource. Or maybe I could call a Data Service via java script and not pass in all the current properties on the object rather complete there values on th...

URL Encode all non alpha numeric in C#

I need to fully URL Encode an email address. HttpUtility.UrlEncode seems to ignore certain characters such as ! and . I need to pass an email address in a url formated like this: /Users/[email protected]/Comments Because my WebMethod uri template looks like this: [WebGet(UriTemplate = "Users/{emailAddress}/Comments")] The period bre...

How to do design this in WCF/RIA?

Our architecture is currently in this way (in .NET 2.0): Data/entity classes are non-serializable lots of code in getters/setters in several properties of entity classes (core business validations/business data refresh etc.) logic behind getters/setters would also access database. modifying a value in a setter would reflect several oth...

WCF - Proxy Generated Classes & partial classes; Project/Assembly infrastructure

Is it a good idea to introduce an additional partial class for a svcutil generated proxy class at the service layer? I am looking for some insight and thoughts concerning a proposed project structure along with the utilization of partial classes in an attempt transform entities to support backward compatibility in our service endpoints ...

WCF Security Learning Resources

What are the best soup-to-nuts learning resources to get up to speed on WCF security? Most WCF tutorials don't bother with security and use basicHttpBinding however, what I'm doing needs to be industrial strength. I need to learn how to minimize the size of messages on the wire encrypt messages on the wire so they can't be sniffed and...

How to add a custom IOperationInvoker to every operation in an endpoint

I have the need for a custom IOperationInvoker in my service. I have it working just fine, but I don't particularly like the idea that in order to apply it to a given operation I have to make it an attribute. I can't seem to find any documentation on how to have it config based (similar to a MessageInspector on an endpoint). I created ...

asp.net WCF and JSON

I know returning types in a wcv service is allowed, and it will convert the object to json. But what if I don't want to return a random type, but return a string with formatted json? I can construct json my self but it can a) be messy, and b) not auto encode html values. How do I do build a custom formatted json string? Off the top of m...

Resolving dependency on data model using Autofac

I have run into an issue while creating a data service and using Autofac WCF Integration to resolve a dependency on my data model. Registrations are of the form: builder.RegisterType<MyService>() .InstancePerDependency(); builder.RegisterType<MyModel>() .InstancePerLifetimeScope(); where MyModel has a dependenc...

Error While trying to upload video >50MB using WCF Service

Hi all, I am recving the exception while i try to upload a file of size grater than 50MB using the WCF service. Following is my Config File: I have used "BASIC HTTP BINDING" <?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your applicatio...

WCF Data Service returns 400 Bad Request for POST queries

Hi, I need to host a WCF Data service as part of a legacy ASP.NET MVC website running in IIS 7 Integrated mode. Read access to the web service is working fine, but whenever I try to POST to the web service, I get a 400 Bad Request error. For testing purposes, I have downloaded the sample odata service from http://www.odata.org/develop...