wcf

WCF RIA Services Silverlight 3.0

Hi, I have downloaded WCF RIA Services Beta from the following website: WCF RIA Services Beta for Visual Studio 2008 SP1 http://www.microsoft.com/downloads/details.aspx?FamilyID=76bb3a07-3846-4564-b0c3-27972bcaabce&displaylang=en#filelist But I am unable to add a reference to the following assembly : system.Windows.Ria.Data I se...

using UDP protocol with WCF

Hello All, Which binding should I use to make my WCF application communicate through UDP instead of TCP? Can someone point me to the right direction so that I could use UDP with WCF? Thanks ...

How to share domain classes and business rules between client and server like in RIA Services by writing them only once

In an ASP.NET - WCF application I want to share domain classes and business rules between client and server without rewriting them, just like in Silverlight RIA Services. Collecting these in one assembly and referencing this from client and server can solve the problem, but how: by adding service refence to client will generate these cla...

WCF - Response Format

Hello, For some reason, I have the idea that a client can ask a WCF service for the request to be of a certain format. Is this possible or do I need to create the same method with different signatures for each different response type? For instance, if a Silverlight client accesses my WCF service, I want to using binary encoding. Howeve...

.NET WCF ServiceHost - startup arguments

I am creating a remotable object using WCF. This is a snipped of how I create the remotable object ... ServiceHost service_host = new ServiceHost(typeof(MyObject), new Uri[] { new Uri("net.pipe://localhost") }); service_host.AddServiceEndpoint(typeof(IMyServer), new NetNamedPipeBinding(), "MyServer"); service_host.Open(); return service...

What is the best way to implement authentication in a WCF service on an enterprise architecture?

I'm relatively new to WCF and would like some opinions on what's the best (or most correct) way to implement authentication on an application that exposes its' business layer operations through WCF? Is a token supposed to be passed, encripted username/password and verified each time...or what? Also any links would be appreciated. Tha...

C# webservice losing data on return

I am programming a client program that calls a webmethod but when I get the return data there are missing values on some of the fields and objects. The webmethod in turn is calling a WCF method and in the WCF method the return data is fine. But when it is passing to the webservice the return data is missing. Is there any way to fix th...

How to I find out when my WCF server has exited (and closed it TCP connection)

I am using the nettcpbinding binding (with reliably messaging at present). When the server does a serviceHost.Close(), the TCP connection should be cleanly closed and therefore the client side should be told. How do I hook this event with WCF? (Note this is not the same as the TCP connection being closed by a network problem, when re...

Secure Access between WCF Web Services and Flash Web Site

How-To Secure Access between WCF Web Services and Flash Web Site ? I don't want any other users call the web service out of the flash object. ...

Can I expose multiple webHttpBinding endpoints in the same port?

I know I can expose multiple netTcpBinding endpoints in the same port. I know I can't expose an endpoint in the same port used by IIS. What about multiple webHttpBinding endpoints in the same port? ...

ServiceKnownTypeAttribute doesn't pop up in WSDL

I have an service Interface: [ServiceContract] [ServiceKnownType(typeof(Models.ArticleImage))] public interface IPhotoManagementService { [OperationContract] bool Login(string username, string password); [OperationContract] bool IsLoggedIn(); [OperationContract] void UpdateImage(string articleID, string selectedImage); } As yo...

WCF Service to receive XML message

I want to create a WCF service that accepts an XML message that interoperates with a non MS consumer. Now, I could expose a method that accepts a string and then handle the XML from that point onwards. Is there a better approach than using a string parameter? Thanks ...

circumventing WCF with direct calls to a DLL in a single user environment

I am helping a company with a software package that will flexibly support multiple deployment scenarios. The package is written with .NET, has a well defined BLL, and utilizes SQL Server for the database. The design calls for a clear delineation between data access and services (BLL) and UI. There are at least two UI front ends at thi...

Problems running a Secure WCF Service in a DMZ

Hi Everybody! I'm having some trouble with two web applications that communicate each other using WCF Services. This is my scenario: Web Application "A" is deployed in a server of the corporate intranet and part of domain "intranet" Web Application "B" is deployed in a server of the DMZ, exposed to internet and part of domain "extrane...

WCF - Preventing Unauthorized Clients

Hello, I have a WCF service that I only want my applications to have access to. My applications consist of a traditional web interface that uses JQuery and a Silverlight interface. Neither of these interfaces require the user to login. Is there a way that I can tell a WCF service to only allow clients that originated from my domain? I...

Client configuration to consume WCF

Hi folks, from my Silverlight 3 application, I consume a WCF-service. I pass a list of integers to the service. This list can get quite large >10k entries. Eventually, I get an error from the service, when the list is getting to big. I know, I can set the value to allow more data to be transfered in the ServiceReference.ClientConfig fi...

What are the best practices for including logging using log4net?

I have been told to add “logging” to my code using log4net, the problem is no one can travel in time and see what real world problems the logging will need to be used to solve. Therefore is there a set of guidlines anyway as to what to log so as to get a reasonable cost/benefit trade off? Therefore: What kinds of logging should one...

Passing a Version object in Silverlight

I created a basic Silverlight WCF service from VS2008. The only thing i have changed from the auto-generated WCF service is to add a method: public int DoWork2(int x, Version version) { return x; } If i remove the Version parameter, my Silverlight client works perfectly, but if the Version parameter is added, I get a...

.NET ASMX - Returning Pure JSON?

I am going nuts here. I've looked at the following entries and none of them are correcting the aberrant behavior I am seeing: http://stackoverflow.com/questions/288850/how-to-return-json-from-a-2-0-asmx-web-service http://stackoverflow.com/questions/1678101/how-to-return-json-from-asp-net-asmx http://stackoverflow.com/questions/211348...

Pitfalls of (Mis)Using C# Iterators to Implement Coroutines

I am writing refactoring a Silverlight program to consumes a portion of its existing business logic from a WCF service. In doing so, I've run into the restriction in Silverlight 3 that only allows asynchronous calls to WCF services to avoid cases where long-running or non-responsive service calls block the UI thread (SL has an interestin...