wcf

Why isn't my custom WCF behavior extension element type being found?

I have a solution that contains two projects. One project is an ASP.NET Web Application Project, and one is a class library. The web application has a project reference to the class library. Neither of these is strongly-named. In the class library, which I'll call "Framework," I have an endpoint behavior (an IEndpointBehavior implementa...

How to serialize SettingsContext and SettingsPropertyCollection

I need to serialize the System.Configuration.SettingsContext and System.Configuration.SettingsPropertyCollection types as i am implementing my own profile provider. Any suggestions on how to do it in the most simplest way. ...

How to serialize System.Configuration.SettingsProperty

I need to serialize the System.Configuration.SettingsProperty and System.Configuration.SettingsPropertyValue class object through WCF. ...

LINQ Benchmarks in multitiered environment

I am involved in development of a tiered application that uses LINQ2SQL separated from the web server with a NET.TCP Binding on WCF. My questions are: What sort of measures should I take to achieve the best performance? Since the entity objects returned by the LINQ need to be converted to a IEnumerable list to be serialized everyt...

How can I control the name of generic WCF return types?

I've got a WCF Web Service method whose prototype is: [OperationContract] Response<List<Customer>> GetCustomers(); When I add the service reference to a client, Visual Studio (2005) creates a type called "ResponseOfArrayOfCustomerrleXg3IC" that is a wrapper for "Response<List<Customer>>". Is there any way I can control the wrapper na...

WCF DataContracts

I have a WCF service hosted for internal clients - we have control of all the clients. We will therefore be using a data contracts library to negate the need for proxy generation. I would like to use some readonly properties and have some datacontracts without default constructors. Thanks for your help... ...

How does WCF deserialization instantiate objects without calling a constructor?

There is some magic going on with WCF deserialization. How does it instantiate an instance of the data contract type without calling its constructor? For example, consider this data contract: [DataContract] public sealed class CreateMe { [DataMember] private readonly string _name; [DataMember] private readonly int _age; priva...

What is the best way to create a Factory Method when using WCF?

I have built a complex query mechanism which I want to provide a factory for in order to assist people with common query patterns. My methods are all revealed via WCF as a SOAP web service. What is the best way to ensure that my factory is easy to use across all clients that may wish to use my service (as I don't expect all of my custome...

Is there a way to programatically decide which WCF session to connect to?

I need to be able to use WCF Session capability in a Silverlight application. Currently Silverlight only supports basicHttp binding, so this is impossible. My thoughts are to create a middle piece with wsHttp caapabilities that will handle the Sessions for me and my sessionless Silverlight app can pass in the SessionID guid. Is this ev...

How do I initialize a Service Object when Self-Hosting in WCF

I am hosting a service within a Windows Service. The following snippet instantiates the ServiceHost object: Host = new ServiceHost(typeof(Services.DocumentInfoService)); The DocumentInfoService class implements a contract interface that has methods that invoke business objects requiring initialization (actually a connection string)...

Can I upgrade an ASP.NET web service to WCF and still call it from ASP.NET 1.1?

I need to make a change to an ASP.NET web service written a couple years ago on 2.0. I call this web service from an old 1.1 web site. I need to make some changes to the web service, so am thinking, should I rewrite this into a WCF service and if so, will I still be able to use it from my 1.1 web site? ...

WCF Endpoint with Priority

I need WCF service with 3 endpoints High Normal Low Most of messages will come through Normal and Low Endpoints. If Message on High will appear it have to be processed asap. Does anyone knows how to do it ??? ...

Expose a WCF Service through a Named Pipes binding

Intro: I successfully implemented a WCF Service hosted in a Windows Service a few days ago. The community here at StackOverflow helped me with the WSDL exposure here. I thank you once again. However recently I found out that there is another potential client for this service this time located on the same machine as the service and this ...

REST / SOAP endpoints for a WCF service

Hi, I have a WCF service and I want to expose it as both a RESTfull service and as a SOAP service. Anyone has done something like this before? ...

WCF Custom Http Proxy Authentication

Is it possible to provide WCF with a custom proxy address and custom credentials? I've found this answer on stackoverflow: http://stackoverflow.com/questions/105499/how-to-set-proxy-with-credentials-to-generated-wcf-client, but I've got a complication, the service I'm authenticating against uses its own authentication, so I've got to u...

How to expose objects through WCF?

My project is split up into a typical 3 layer structure for a Silverlight app. That is: A base layer, which is a class library that contains all my business objects, logic, data access etc. A middle layer which is a WCF service which communicates with; My Silverlight front end The problem I have is that currently the BO's exposed thr...

Sharing Enum with WCF Service

I have few different applications among which I'd like to share a C# enum. I can't quite figure out how to share an enum declaration between a regular application and a WCF service. Here's the situation. I have 2 lightweight C# destop apps and a WCF webservice that all need to share enum values. Client 1 has Method1( MyEnum e, s...

Self Signed Certificate in Windows without makecert?

We have a shrink wrap type Windows server application where we need to create a self signed certificate on the server to be used by some WCF web services. From our searches on the web, it appears that the makecert utility in the PlatformSDK from Microsoft cannot be distributed with our application, so we're looking for alternatives. ...

How to document a WCF web-service in a technical spec?

Other than pasting a WDSL in the tech spec, what are the recommended ways to document a WCF web-service before you begin coding? ...

WCF Errors using WCFTestClient to test a simple WCF Web Service

When I try to test the AutoLotWCFService using "wcftestclient", I get the following error. What am I doing wrong? Any insight will help. This is a simple Web Service that has wshttpbinding with interface contract and the implementation in the service. Here is the long error message: The Web.Config file has 2 endpoints - one for Web Servi...