wcf

Synchronization problems with Monitor class in WCF service

I have a self-hosted WCF service and I'm having the following problem: 15 minutes after creating the instance of the service TryEnter calls in operation contract methods constantly return false, but the TryEnter calls in Main function, which also uses synchronization via Monitor class, return true. Here's the description of my app and t...

Why does the generated .NET proxy for this WSDL drop some data?

I've added a WCF service reference to a .NET project using this WSDL: https://interop.cmiservices.org/axis/services/CAP1%5F1?wsdl It generates the proxy classes, etc., and I am able to call the methods. However, when calling 'getCAPAlerts', or 'getCAPAlert', the return values seem to be missing data. For example, 'getCAPAlert' returns...

WCF Duplex Channel: Check if callback channel is still available

Hi guys. I have the following problem. I'm writing chat software. The client/server mechanism is based on DualHttpBinding of WCF. This means that if a user sends a message, all clients that are in the room where the message has been sent, are notified by the server. I want to ensure, that if a client's application crashes (whyever), th...

WCF Error: looking for a false token when JSON request sent

Hello, I'm having WCF problems where I'm receiving errors that a token 'false' was expected but found 'filen', which is because I have a ajax function written in jQuery that is sending JSON in the form of "filename:Bank Detail SPC 09-0724 to 09-0824". I dont see any reason why its looking for false...I have been banging my head on thi...

WCF Service Browsing

I have a WCF service installed on my system. I can browse and see the .svc file just fine. Should I be able to use a browser to view the endpoint addresses such as https://svc.example.com/BaseService/Login ...

Current WCF technology alternatives for .NET-to-.NET services?

I'm splitting up an N-tier stack to allow independent scaling of the tiers, better deployment independence, and I'd like to know what people are currently choosing for service-boundary communication technologies. The service itself and all of the "clients" to the service will have access to one another over an internal network and are c...

Passing a custom object to a Windows Workflow WCF Service

Hello, I'm having a problem passing an object for some reason and I'm not sure why. I'm getting a Object reference not set to an instance of an object error. Essentially from my client application I make a call to a Windows Work... Client Code Workflow1Client client = new Workflow1Client(); ACME.Order newOrder = new ACME.Order(); ne...

WCSF + WCF Service in ASP.NET 3.5 Disadvantages.

I need to build a webapplication that uses WCF services as backend and ASP.NET as frontend. It has a rich UI components because it is a migration of a desktop application. Now I just read the WCSF introduction from Simon Ince's Blog, but I dont get it much deeper. I want to know the advantages and disadvantages of converting my ASP.NET-W...

Dealing with WCF service restart on client-side

I've got a GUI client which is running against a WCF services hosted as a Windows service on a server box. The WCF service is running in PerCall InstanceContextMode, and the client has a singleton instance of the service client and I want to avoid reinstantiating the singleton on every call as it makes life difficult for the many asynchr...

Avoiding having to map WCF's generated complex types

I have an ASP.NET MVC web app whose controllers use WCF to call into the domain model on a different server. The domain code needs to talk to a database and access to the database server isn't always possible from web servers (depends on the customer site) hence the use of WCF to get to a place where my code is allowed to connect to the ...

Issues with .MSI install package created for IIS WCF Web Service - default dir and app pools?

I followed these instructions, and it worked well. http://blogs.cardwells.org/gis/2008/10/08/creating-installer-for-a-web-service-in-visual-studio-2008/ However, the default virtual IIS Diretory name is the same as my projet name. For example, my web service is called MyCompany.RCT.WCFWebServices, and my setup project is called MyCo...

Multi-Environment WebConfigs for One WCF Installer (MSI)

I've created a working Visual Studio 2008 "web setup project" that builds an MSI for my WCF web service. I would like to provide 4 different web.config files, one for each of four environments (Dev, QA, Staging, Prod). In other words, I know what the connection strings and our other web services should be in each of those environments...

10922 Record Limit in WCF in .Net 3.5

I have a very strange situation. I have a large set of records to return as a List from a WCF service. If I return the set as a DataTable, everything works fine. There are about 19,000 records in the set. If I return the set as a List (where T is a DataContract) it errors out and closes connection upon returning any set longer than 1...

Receiving NotFound CommunicationException in Sliverlight 3 WCF client

I'm getting a very unhelpful CommunicationException when attempting to call a WCF service from Silverlight 3. The message of the exception is "The remote server returned an error: NotFound." Each inner exception parrots that same message. Is there a problem with my setup that could be causing this issue? Here's my setup. The WCF ser...

WCF assembly causing circular dependencies.

I have a silverlight library which I have added a wcf service reference. Call this library A.dll. This library contains other functions and I prefer to have the wcf code in another library. I now have created another silverlight class library which I have added the same wcf service reference (call this library B.dll) and want the first...

Multiple WCF service of the same service and contract type

Is it possible to host 2 WCF services of the same type and contract on the same AppDomain? In the configuration below, I am configuring a single service of type Service.SomeService that implements contract ISomeService. what I want to do is be able to host 2 services of this type, of course with different URIs. <system.serviceModel> <s...

Impersonation Problem

How can I Impersonate a User that is Login in the client in my service? I use ADMembershipProvider in wcf Service. ...

Access to request HTTP headers in custom WCF MessageEncoder.

Hi folks, Does anyone know how to get access to request HTTP headers within MessageEncoder.ReadMessage method? It seems that WCF already "knows" request headers at the point of invoking ReadMessage method, at least Content-Type and Content-Length but I cannot get the access to the Content-Encoding header. Basically, I'm trying to utili...

How to handle a FaultException in WCF without aborting the whole transaction?

I have a WCF service being called as part of a transaction. If the service is called twice (often happening during debugging) I want a FaultException to be thrown by the service but the overall transaction must succeed. throw new FaultException("Duplicate action not allowed for " + msgIn.ActionType, new Faul...

Viewing JSON output in a simple WCF rest service

Hello, How do I access this WCF function through the browser and view the JSON code... [OperationContract] [WebInvoke(Method="POST",BodyStyle=WebMessageBodyStyle.Wrapped,ResponseFormat=WebMessageFormat.Json)] string GetData(int value); Here's the code in my service...its just a sample function... public class Service1 : IService1 ...