wcf

Convert normal web service to wcf

I have a normal web service. Many java and .net users are accessing it. Can I update it to wcf without anyone having to change their code? Any tutorials? ...

remove data layer and put into it's own domain

I have a SL4 application that uses EF4 & RIA Services. DB is SQL 2008. All is working well. Now I want to put the Database and web services on one domain (A.com) with the web service exposing the same methods available in my working project. (one listed at top of message) Then put a Silverlight application (same one as above) on domai...

WCF caching like it was with WebServices

Does anybody know if WCF support kind of caching like it was with Web Services or should i implement it manually? ...

Develop a custom file sync provider over file transfer WCF service

Hi All I'm trying to develop a custom sync provider to sync files over the internet using WCF service. We already have a file transfer service and it's working in production but I need to implement a custom sync provider on top of it. I've checked the solution in Braynt Likes blog here but this doesn't fulfill my needs. Any advices, g...

Class design question (Disposable and singleton behavior)

The Repository class has singleton behavior and the _db implements the disposable pattern. As excepted the _db object gets disposed after the first call and because of the singleton behavior any other call of _db will crash. [ServiceBehavior(InstanceContextMode=InstanceContextMode.Single)] public class Repository : IRepository { ...

.NET Based Radio Automation

I'm curious if anyone has seen an Open Source radio automation package (I found one in Russian on CodePlex) built on .NET In addition if I wanted to build something like this in a client server environment is WCF and WPF the best way to do it? Is it fast enough to trigger songs to play/encode on the server from a remote WPF client? So...

WCF Service Issue

Hi, I am facing issue of the WCF Services on staging server. The same service is running perfectly in my local pc. But when i configured the same on staging server it is giving issue saying that: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication, because it is in Faulted s...

default value in web service wsdl in asp.net

Hi, I created on wcf web service and trying to test with SOAP UI. When testing with soap ui for example creating an employee, if I send soap request xml with <empId>0</empId> works fine. <empId></empId> **throwing exception.** if i completly remove <empId> tag it works fine.... Is there any way to make default value as "0" in wsdl...

WCF service is not responding

Hi A Flash program is connecting to WCF web service hosted on a server without anti-virus and without firewall and windows server 2003 64 bit environment. The flash return Connection failed message When I sniffer it I found that the Flash program cannot find these requests, http://IP:2805/BLL.svc?xsd=xsd1 http://IP:2805/BLL.svc?xsd=xs...

How to intercept raw soap request/response (data) from WCF client

This question seems to be pretty close to what I am looking for - I was able to setup tracing and I am looking at the log entries for my calls to the service. However I need to see the raw soap request with the data I am sending to the service and I see no way of doing that from the SvcTraceViewer (only log entries are shown but no data...

WCF- how to add multiple services to Service.svc?

hi, I have 4 services running via a service host project, which communicate fine with my asp.net application when the ASP.NET development server hosts them through VS for debugging. I am trying to deploy these to IIS on a windows server 2008 machine, using WAS. I have the project set up as an application in IIS, and have copied the en...

WCF publish/subscribe service, and ASP.NET MVC client

I managed to develop a custom WCF service, using the publish / subscribe model, and hosted inside a managed windows service. Everything's working. I developed an interface as the service contract implementing a method definition marked as a non-one way operation contract (OperationContract(IsOneWay = false)]. This, to make possible retu...

Accessing Identity.AuthenticationType

While implementing a custom authentication type in a wcf service, I'm trying to read the property IIdentity.AuthenticationType using the call Thread.CurrentPrincipal.Identity.AuthenticationType. Unless the account running the service is local administrator, UnauthorizedAccessException is thrown when accessing this property, much like ...

Soap Server Images

What the best way of passing images over a soap server? I'm using WCF 4.0 and flex for my front end. ...

RESTful .NET and protobuf-net

Is it possible to use protobuf-net in RESTful webservices created using WCF RESTful starter kit or OpenRasta? If it possible, are there any examples or code snippets available? I am creating a .NET Web Service which will be consumed by Java client. ...

Architecture decision for client-server communication protocol

This question is pretty generic actually, but I'm really having trouble finding a good answer or example of how it should be done. We are writing a simple multi-user collaborative web browsing application and we are having some issues deciding what to use for a communication protocol. We are developing in C# under Mono, hoping to event...

How can I locate an open web services call in .NET/WCF?

I'm working on a project where a large number of clients will be connecting to a WCF web service. When they connect, the web service will sleep until an event occurs on another WCF service running on a different server. I want the other service to "wake up" the client service when the event occurs using another WCF service call on the ba...

wcf 4 netTcpBinding

I was seting up a wcf 4 service today with netTcpBinding, and I just couldn't get it to work. It was of course no problem getting basdicHttpBinding to work since little config is needed in WCF 4. I started wondering if it is even possible to get netTcpBinding working when debbuging through VS10. I'm hosting my service in a svc-fil...

WSDL first WCF server where client does not send SOAPAction

I am implementing a WCF web service which interacts with a client whose code I do not control. The WSDL was supplied by the client. I generated C# files from the WSDL using SvcUtil, and besides the errors discussed here I had no issues. After hosting the service in IIS 7.0 with SSL enabled (required by the client) I attempted to get th...

NHibernate Session per Call in WCF - How to Rollback

I've implemented some components to use WCF with both an IoC Container (StructureMap) and the Session per Call pattern. The NHibernate stuff is most taken from here: http://realfiction.net/Content/Entry/133. It seems to be OK, but I want to open a transaction with each call and commit at the end, rather than just Flush() which how it...