wcf

Force connection to close with HttpClient in WCF

We're using the HttpClient class from "Rest toolkit" for WCF ( http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24644 ) to inteface a Rest-server we've created. The server currently always close the connection, regardless of the "connection" header (it is in developement, so that is ok for now). How can I tell the Ht...

WCF Session Timeout

Hi, I want to set a session timeout of 30 seconds. To do so I wrote: <wsHttpBinding> <binding name="ServicesBindings"> <security mode="Message"> <message clientCredentialType="Certificate"/> </security> <reliableSession enabled="true" inactivityTimeout="00:00:30"/> </binding> </wsHttpBinding> But ...

Modify endpoint ReaderQuotas programatically

Hi, I have a dynamic client to a service. How can i change the ReaderQuotas property of it's endpoint binding? I tried like this but it doesn't work .... DynamicProxyFactory factory = new DynamicProxyFactory(m_serviceWsdlUri); foreach (ServiceEndpoint endpoint in factory.Endpoints) { Binding binding = ...

When to use SOA (Service Oriented Architecture)

I had a conversation with one of our architects recently and he summarized his use of SOA as "The only time we'll use services is when we need async actions otherwise we'll use go direct to the data store" I thought about this statement and it seems fairly logical as services work well in a publish subscribe model, but I was wondering i...

.net web service using SSL. wcf ?

Hi, I was asked to set up a .NET web service to expose a few methods for querying a database, which isn't a difficult task, but they said they wanted it secured using SSL since it is not internal. How does one use SSL with a web service? And is this something to use WCF for, or should I stick with a .net 2.0 web service? Thanks in ad...

Has anyone created a DataContract testing tool?

Has anyone seen a library that tests WCF DataContracts? The motivation behind asking this is that I just found a bug in my app that resulted from my not annotating a property with the DataMember attribute - as a result, that property wasn't being serialized. What I have in mind is an API that, given a particular type of DataContract, wi...

Adding Permissions to a Complex System

I have a project with several separate components that all need to talk to each other. I am now trying to find a good way to share a permission system between each component. The 3 major components are: An ASP.Net Web Application A Silverlight application (served by the web application) A Windows Service, which provides some WCF web ...

Dropping outdated WCF responses in Silverlight

In Silverlight I got the following problem. If you fire multiple requests to the web service, the responses might not return in an ordered sequence. Meaning if the first request takes longer than the following ones, its response will return at last: 1. Sending request A.. (takes longer for some reason) 2. Sending request B.. 3. Sending ...

WCF Service - authentication / SSPI error

When I run my WCF service on my local machine, it works fine. When I deploy the same files to our test server, I get this error when my test client tries to connect to the WCF service: {"Security Support Provider Interface (SSPI) authentication failed. The server may not be running in an account with identity 'host/Server01'. If the se...

Books on REST and WCF - Any out there yet?

I'm starting to get into WCF and Silverlight development and I've decided on a RESTful architecture. I need resources now and am looking for some good books. Can someone recommend any? Does anyone know if this book: "Learning WCF" by Bustamante (http://www.amazon.com/Learning-WCF-Hands-Michele-Bustamante/dp/0596101627) has any REST ...

Where to find good WCF video tutorials?

I am learning WCF, and trying to take a look at its power and how it can help me in my projects, so i want to see some videos about it before start reading a book. Please can you send me all good video tutorials you trust. ...

Are WCF Web services compatible with Sharepoint?

I am trying to place a dataview webPart on a WSS page through Sharepoint designer, consuming a WCF Web service, buth when I place the WSDL of my Web Service, it gives me an error. I migrated the WS to ASP.Net WS and it work perfectly. The error is related to the Soap envelope. I am using anonymous consumption for now (don't want to ad...

Why would a WCF method's return type be changed from a generic collection to an array?

I have a WCF service method which I have written for return type as collection type. But if I generate a proxy class and consume the method from the client the methods return type is changed from a collection to an array. Why is this happening? ...

How can I bind TCPListener to an external IP address?

I have a client/server style application which communicates using WCF which all works great. One function of the application is to get files from client machines onto the server (Central Control). The Central Control requests a list of file in a specified folder on the client and opens up a port using sockets for the clients to connect ...

MEF and WCF

I'd like to use MEF for instantiating the dependencies in an application that has several WCF services hosted in IIS. The different services depend on shared components and I'd like MEF to manage the instantiation and injection of these. Where should I perform composition? Initially I thought of having a CompositionContainer in an IInst...

proper design of web service and associated queries

hi, I am setting up a web service and i'm unsure about the most efficient design.. The web service is going to be called to populate a remote website with a list of people and their associated information. So, in the database there will be a "Person" table, then other tables for nicknames, addresses, phone numbers, etc. There may be ...

Resource cleanup on abrupt WCF Sessionful service disconnect

I have a sessionful WCF service that spawns a process and opens a named pipe to this process when the IsInitiating operation is called. When the IsTerminating operation is called, the service sends a message down the pipe to inform the process on the other end that it can shut-down. Unfortunately, if the client doesn't disconnect gracefu...

Impersonate Client Identity in WCF w/ netTcpBinding

Is it possible to impersonate a client's identity when invoking a netTcp endpoint operation via configuration? There is a section within the WCF config client as shown below: <client> <endpoint address="net.tcp://localhost:8081/tcpExample" binding="netTcpBinding" bindingConfiguration="myTcpBinding" contract="TestTcp.IHelloTc...

Service Faulted State

Where is the MyDefinedFault class. how to define this class. ...

How to specify a WCF known type in config that is generic?

I have a type, let's call it Data<TKey>. I also have a WCF service contract that accepts a type (lets call it Wrapper) with a property of type Object (for reasons I won't go into, this isn't optional). [DataContract] public class Data<TKey> { ... } [DataContract] public class Wrapper { [DataMember] public object DataItem { get...