wcf

Disable WCF headers

Hi there, How an I disable To, Action and all other standard WCF headers leave just body alone? If it's possible how client and service configs should look like? ...

Silverlight deploy website with db on host not working

Hello, i have built (locally) a silverlight website. It uses a mysql database (had to install mysql connector) and a wcf service to contact the db on the server. Locally, everything works fine. However when i uploaded it on my host, the silverlight application loads OK, but t cannot get the data from the host database. It's the first ...

Unrecognized attribute 'transactionFlow' when using basicHttpBinding

Hi, I'm creating an ASP.NET web application that is to communicate with a WCF web service. When executing the asp.net web application, that is, when I'm accessing it through a web browser, i get the following error: Unrecognized attribute 'transactionFlow' in web.config. transactionFlow is indeed an attribute under basicHttpBinding in ...

the nhibernate cross machine lazy load problem

i got a client a server and a db db mapped to server with fluent nhibernate. so far so good the client talks with the server with wcf. i want to implement lazy loading on client side. is there any solution out there? ...

WCF - use same type across multiple services

We are starting to build a common entity model using Entity Framework v1. The goal is to expose various common operations as services that can be used by several different clients. The problem we are running into is reusing the types across multiple services. Example: Service1 (at http://example/service1/service.svc) returns a List S...

MVVM on top of claims aware web services

Hello experts, I'm looking for some input for a challenge that I'm currently facing. I have built a custom WIF STS which I use to identify users who want to call some WCF services that my system offers. The WCF services use a custom authorization manager that determines whether or not the caller has the required claims to invoke a given...

How to intercept WCF class creation

I have a wcf service for which I am not using a service reference. The classes and interfaces are defined in a dll both the client server reference. Communication with the server uses a class derived from ClientBase. I want to intercept wcf's default objects creation on the client side, so that I can provide a subtype that implements IN...

Can I use a rich domain model with WCF?

Is it possible to use DDD and a rich domain model if your application is like: windows client (WPF) windows service And communication happens with WCF? I'm used to have DTO's with only data state, and have business rules inside the Service layer, but everyone keeps telling me that I should have a rich domain model where data state ...

Returning a List<SuperType> on a WCF service

Hey, I am trying to get a WCF service to return a List that contains instances of classes that inherit from A but am getting "The underlying connection unexpectedly closed" when the service returns the list. I have the following [DataContract] [Serializable] public class A { ... } [DataContract] [Serializable] public clas...

WCF Service, how to get the web site URL from within a class library?

I have a WCF service running in IIS that calls a function in a class library where httpContext is available. How can I dynamically get the web site url, this may also be a virtual directory? ...

Avoiding a double serialize/deserialize

I have a WCF webservice that acts as a proxy between a WCF windows service and a client interface. This is done so that our program can have a central "state" server, while the webservices can be distributed. Ideally i would like to cut out the middle IIS hosted WCF webservice serialization and feed the bytes sent by the client directl...

Instruct WCF Service to return JSon.

Hi, I want to know if by default the WCF web services return JSon data. and if no how can i configure the most simple WCF web service it to return Json. thanks in advance. ...

Implement 'Ping' functionality using Message Inspector causes WCF runtime to throw NullReferenceException

I'm using WCF to implement a web service. This web service requires a 'ping' feature as a health monitor for each service. This functionality has been implemented using IDispatchMessageInspector and is configured for each endpoint of a service. This is due to a business requirement for the 'ping' to be as near the actual service code as ...

MsmqMessage<T> neccessary ?

I am analyzing a BizTalk application (aka orchestration) that is communicating with a WCF service by MSMQ. I was wondering why one of the WCF service implementations has a MsmqMessage as a parameter in the service method. I was expecting a contract type T instead of a MsmqMessage. This is not really binding agnostic, because the WCF ser...

Consuming WCF REST service in multiple ways (.Net, plain XML)

I have become quite frustrated of WCF as I just want to use this simple scenario: Provide a webservice using REST, with a UriTemplate like /method/{param1}/{param2}/ and a 3th parameter that is sent to the service as XML as POST data. Use just plain XML, no SOAP overhead. Be able to generate a proxy in Visual Studio so a .Net using cli...

Measure request time on server

Hi, I would like to compute time that spans between two particular moments: - start moment would be call to method IDispatchMessageInspector .AfterReceiveRequest - end moment would be call to method IDispatchMessageInspector.BeforeSendReply In fact, I would like to compute time that is needed to execute service call user code. I thou...

Where is System.ServiceModel.Web.dll?

I am developing a Windows service that exposes a WCF service intended to be consumed by a Silverlight application, as explained in this blog post: http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2008/03/27/10291.aspx The problem I am facing is that I need to use the WebInvoke attribute, which is defined in the System....

WCF, containers in DataContract

Hi I need to pass some container of objects to WCF call [DataContract] class Foo { // other fields omited [DataMember] public List<Foo> MyList; } Is it OK for serialization? If not what are my options? ...

WCF ChannelFactory and Channel caching in ASP.NET client application

Hi All, I´m building a series of WCF Services that are going to be used by more than one application. Because of that I´m trying to define a common library to access WCF services. Knowing that each service request made by different users should use a different Channel I´m thinking in cache the Channel per-request (HttpContext.Current.I...

I want to add the date to my log file

Log files can get very big, very fast if you log wcf calls and messages. I want to split up the log files by date. I can write my own tracelistener but i prefer some constant in the log if that is possible. Something like this <sharedListener> <add initilizeDate="SomeLogFile{TODAY}.log" this would output a log file like this : SomeLo...