wcf

How to define and add a enum as type

I am working on custom data provider using ADO .NET Entity Framework. In the CreateMetaData function, I need to add primitive and complex properties in the ResourceType. I believe Enum should be added as the complex data type. If yes, how can I add this? Any pointer would be a great help. Thanks, Ram ...

How do I expose non persisted properties using a WCF Data Service?

Hi all, I've created an entity model using Entity Framework 4, which I've exposed via a WCF Data Service. One of my entities needs to have properties defined that are not persisted to the database, but the Entity Model designer doesn't allow you to do this. To get round this I've defined all my objects as POCO objects, which allows you...

Active Directory Web Services (ADWS) SDK

I recently come to know that there are web services by WCF for Active Directory. I presume this is not about LDAP. Are there any documentations or blogs about it as to what the default endpoints are or what the API looks like or does it even talk in SOAP? or can you please shed some light on how to connect to Active Directory Web Servi...

WCF Service and Threading

I have created a simple WCF (.NET 3.5) service which defines 10 contracts which are basically calculations on the supplied data. At the moment I expect quite few clients to make a call to some of these contracts. How do I make the service more responsive ? I have a feeling that the service will wait until it process one request to go to ...

A book for wcf 4.0

Hi, I need some book where I can learn how to extend WCF 4.0 (ie. write some cusom behavior, custom factory etc.) ...

Did anybody use WS-AtomicTransaction protocol to propagate transactions in WCF over the Internet?

Hi, Just curious, did anybody use WS-AT protocol to propagate transactions in WCF over the Internet in production(wsHttpBinding)? Is it hard to deploy/support? Is it a good approach to keep a WS-AT port open? Or maybe it is better to have a custom solution to support transactions? What do u think? ...

When is memory from a WCF Call Allocated?

I have a call to a SOAP WCF Service that returns a lot of data. More than the calling Windows Mobile Device can handle. Yet I am noticing something odd. When I make the call it looks like this: MyContract[] myContractArray = MyService.CallToGetLotsOfDataObjects(); That does not fail. But when it iterate through myContractArray and...

ServiceHostFactory with multiple bindings??

Hello, How do I use a ServiceHostFactory with multiple bindings?? This is what I've tried and I keep getting issues...one after another error... Please help me correct this.. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ServiceModel; using System.ServiceModel.Activation; using System...

Multiple contracts with same bindings..How?

Hello, How do I use multiple contracts with the same binding on the same port through C# code? Would appreciate any simple code snipplet... Thanks so much ...

Simple URL routes in WCF Rest 4.0 without trailing slash

I have a WCF REST 4.0 project based on the the WCF REST Service Template 40(CS). I'd like to expose simple service endpoint URLs without trailing slashes. For example: CarService.cs http://www.domain.com/cars - GET returns a list of all cars http://www.domain.com/cars/123 - GET returns a single car with ID 123 TruckService.cs http:/...

How to fix the WCF maxClockSkew problem in a HTTPS Silverlight application context?

Situation: Silverlight 4 app communicating with a server component through WCF, using basicHttpBinding and HTTPS. Here is the binding used server side: <basicHttpBinding> <binding name="DefaultSecuredBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"> <readerQuotas maxDepth="50" maxArrayLength="2147483647" ma...

How to test a client of a WCF service

I have a WCF service that exposes 1 method GetNextObjectInList(int id) which hits a DB. The WCF service works, more or less, like this: public class MyService : IDisposable { public MyService() { this.IntializeDBConnection(); } public int GetNextObjectInList(int id) { /* uses DB connection */ ...

can wcf service be loosely decoupled

To start with, I am a newbie in the world of WCF so pardon me if this sounds naive. To my understanding , unlike ASP.NET based websites which use ADO.NET to communicate to the database, a silverlight based app always needs a WCF or RIA services to communicate to DB. We know that ASP.NET websites are not tightly coupled to the database ...

WCF REST: ReadAsDataContract using classes "WITHOUT" decoration attributes DataContract and DataMember

Hi there, I have just done some tests and i have manged to get ReadAsDataContract working on the Response.Content method... The thing that really is confusing is that i thought it shouldn't work yet! As my classes are NOT decorated with the DataContact or DataMember Attributes. I am confused, reading the various tutorials around the ...

Function evaluation timed out

Hi, I have WCF service.. couple times it was working ok.. but after certain point in time the function returns "Function evaluation timedout".. what the heck is this? also, when I checked the state of the proxy it was opened.. can anyone please help? thanks ...

WCF Service to WCF Service Communication

I am trying to create a number of WCF services. These services will expose certain public methods and require to consume each other (i.e. call WCF Service methods from another WCF Service) Is there any good reference tutorial material that I can refer to for this? Thanks all in advance! ...

Should the Service Contract(Interface) be exposed to the Client ?

In the process of learning WCF. To examplify, lets say I have 3 assemblies : 1.) Service.Contract : It has the definition of the interface MyType IMyInterface(); 2.) Service : It has the implementation of the interface MyType MyService() : IMyInterface; 3.) Client : It calls the service. My basic question is should 'Service.Contra...

Calling WCF service using extension method.

I've written an extension method for use with WCF services that keeps all the disposal and exception handling logic in one place. The method is as follows: public static TResult CallMethod<TChannel, TResult>( this ClientBase<TChannel> proxy, Func<TResult> func) where TChannel : class { proxy.ThrowIfNull("proxy"); func.Th...

how to populate the itemssource while scrolling

I would like to retrieve data from my WCF service as the user is scrolling over a datagrid. What are some options for accomplishing this, particularly those that would favour following the mvvm pattern. ...

How to invalidate a C# WCF session if login is incorrect

I am writing a remote service for an application using WCF, in which login information is kept in a database. The service requires session establishment through a login or account creation call. There is no ASP involved. Now, when a client starts a session by calling an exposed IsInitiating method, I check the account data provided agai...