wcf

n-tiered architecture with Silverlight, WCF and nHibernate

Dear All! I try to set-up a clean and flexbible application-framework for data-centric applications with silverlight-only UI. I want to have a strict seperation of concerns, and want to be as flexible as possible (e.g. exchange the ORM later) while still reducing the amount of code. It took me weeks to figure out an appropriate archite...

Msmq and WCF Service

I have created a WCF service using the NetMsmq binding for which i created a private queue on my machine and executed the project. This works fine as such and my WCF service is started and accesses the message using the queue in the debugging environment. Now, I wanted to host the service using the windows service and for the same I crea...

Synchronization completes when there are still batches left.

In a current project we use sychronization between SQL server 2008 and and SQLCE on a windows moblie device. The server runs a WCF service. Due to the possibility of large data to be synchronized we have implemented a batching. Later I've noticed that the device stops to stops to asks for more batches, even if it isn't done. The times I...

Consumer-producer in wcf

Hi, Is there any example of a consumer-producer type web service written in WCF? What I am trying to do is write a web service where a producer can publish/upload variables (in this case, cookies), via a Method, and the consumer will recieve each new published cookie (or can be anything). Thanks ...

Dynamically load .dlls from network share not browsable on client PC -- WCF?

I'm architecting a WPF application using the PnP Composite Application Guidance. The application will be run locally, within our intranet. Modules will be loaded dynamically based on user roles. The modules must therefore be accessible to the application through a network share, thus accessible from the client machines. What I'd like t...

WCF - (504) The server did not return a response for this request.

I have a JSONP WCF Endpoint and am trying to track down why I am getting a 504 error. HTTP/1.1 504 Fiddler - Receive Failure Content-Type: text/html Connection: close Timestamp: 11:45:45:9580 ReadResponse() failed: The server did not return a response for this request. I can set a breakpoint anywhere inside of my Endpoint, ...

WCF Dispatcher for outgoing message from client side

I was programming a server side exception management by injecting an IErrorHandler into the ChannelDispatcher and all worked pretty well. I wanted someting similar at the client side to to catch exception say when the server went down unexpectedly (results in channel faults). I know most of the example out there puts all method calls to ...

WCF Performance: Can I create a pool of my objects like ConnectionPooling does.

I have a service that uses a fairly expensive object to create. I would like to improve the performance from call to call. When I remove the object and run a load test, like how many invocations I can do per second, I have a massive performance difference between to situations. Situation 1. I remove the expensive object: Invocations pe...

WCF service hosted on IIS and client website on IIS

Here's the desired setup: Service with wsHttpBinding is on IIS 6 on Machine 1 behind the firewall. Client is front end website on IIS 6 on Machine 2 on a DMZ. We are currently able to authenticate the client using Windows authentication, but with impersonation <identity impersonate="true" userName="OurCompany\Me" password="Blahblah...

What's the best way to share Durable WCF components? WF?

Hi all. I'm currently experimenting with Durable WCF components which persist themselves in between method calls. This uses the [DurableService] attribute. This allows me to add some state to a component, close my connection to the client, perhaps wait for a while, create an entirely new client, hook back to the previous component and...

Binding failure to WFServiceLibrary1 in workflow service library WFSomeOtherName

Cannot, for the life of me, see where it's getting WFServiceLibrary1. My feeling is that it's a default that it tries to bind if something isn't right elsewhere. It's also possible the workflow service library was originally named WFServiceLibrary1, but I can't find anywhere to change this. Any ideas? ...

Entity Framework - The underlying provider failed on ConnectionString.

While using the Entity Framework I have split it out to it's own project: RivWorks.Model - Contains Entity Model RivWorks.Controller - Uses the Entity Model and contains the biz rules RivWorks.View.Web - The web site RivWorks.View.Services - WCF project Everything in the web site is working fine. I am able to call into the Controll...

dynamic content type

hi , i want to make a single wcf rest function which can return any content type (text-html / applicaiton-javascript and even gif . what should be the signature of the function ( the return type ) what should be the format of the service ?like [WebGet(ResponseFormat = WebMessageFormat.Json)] P.S: i cant make any new method due to the...

WCF service in Azure throws HTTP Error 500.0 - Internal Server Error

Hi there, I've been working on an Azure app, and added in a WCF service (something I've done successfully before). It works fine in the stand-alone asp.net application (running in Cassini), but throws a 500.0 error when I try to call it in the AppFabric. I tried publishing it to Azure and hoping for the best, but it then throws a 404 e...

Visual Studio does not generate app.config content when "add service reference"

When I add a web service by using "add service reference" in the console app, the app.config does not generate the configuration. How do I generate this app.config with a specific wsdl? Thanks! ...

Generic Constraints vs. Inheritance

I'm trying to write some code to help unit test WCF services. These services are accessed through a facade class that creates the proxy instance, then calls the proxy method and returns the result; for each proxy method. I'd like to be able to replace the current creation code with something that either creates the real service or a fake...

WCF service returning an array of dictionary<string, object>.

Hi I've been trying to use a silverlight client to call an asp.net wcf service that would return a Dictionary. That worked fine when the values in the dictionary were simples types like int, string or Guid. However, I now have a scenario where I need one of the values to be an array of dictionary ! It all compiles fine and the signature...

Bad request 400 on sending xml request in wcf rest

Hi all I am writing a sample application using wcf rest for authentication. Here is the snapshot of the code service Interface: [ServiceContract] public interface IAuthenticate { [OperationContract] [WebInvoke(BodyStyle=WebMessageBodyStyle.Bare, Method = "POST", UriTemplate = "/VUser",RequestFormat= WebMessageFormat.Xml ), ] ...

How to find out which wcf services are hosted

How can I find out what wcf services are currently hosted, including information like the base address? (with C#) hosted on the local machine (with Visual Studio or IIS) ...

Should we build web services using WCF if we know our customers like BizTalk?

Background... We've built a web-based b2b system. We know that we'll need to exchange data with our customers' existing systems. Our plan is to create web services to allow two-way access to data. We'd like these web services to be consumable via REST and SOAP in a platform-agnostic manner. HOWEVER, we know that the types of companies th...