wcf

Which IPC to use?

Background I got a client/server solution which is using a mix of services (like IUserService to add/remove/fetch etc) and messages (like UserCreated, CallArrived etc). Each client authenticates when connecting. It's a software as service solution and therefore all messages may not be transported to all connected clients. Therefore I ne...

Silverlight(card game) and WCF communication (with IIS)

Hy people! I have an IIS server on my computer, and there is a silverlight card game what I develop actually, and i want it as a mulitplayer game tu run on my server. I search a lot of about it,but i can't decide which technology or what i should to use. Which technology allow me to communicate my server with the users who connect to it...

WCF and AIR/Flex 4 security

Dear All! In a current project we are hosting a WCF 3.5 service on IIS7 and expose the methods through basicHttpBinding to an Adobe AIR/Flex4-client. Luckily Flash Builder 4 has integrated support for SOAP, so that a service-proxy can be generated easily. Unfortunately, we are not able to find any elegant solution to enable username au...

running WCF in windows forms

hello. I've a program working as client and server. I'm using wcf services with BasicHttpBinding and the program is running in a console application. When i moved the code to a windows forms application, everything stops working. When the client side invoke one operation, it doesn't returns. When some operation on server side is invo...

How to call a service when a SilverLight OOB app is closing an

I need to call a WCF service to update when my SilverLight app exits. it is an out-of-browser app and I'm using SL4. Since the WCF in SL works only async it is not possible to do on Application.Exit I tried also MainWindow.Closing which is available for OOB but this didn't work either. Tried to make the Closing function wait for th...

How to setup a message queue as a communication channel between two WCF endpoints?

Dear ladies and sirs. I have two machines in different domains. The domains are not known to each other (no trust between them). I wish to use the net.msmq binding to communicate data from one endpoint to another. So, let A and S be two machines, where A must be able to send messages to S. Then, in the config file of A, there is this ...

Set up wcf service for http and https and also add username/password to its access

I am kinda new to WCF and the setting up of service and have 2 questions. My first question I have a service that will be accessed via https on a web server. However locally on my local IIS7, it will be accessed via http as https is not available. How can I set up a service to be accessed by both? My second question is regarding how I c...

Can Prism be modular when calling webservices?

I am playing around creating a demo prism application. The application I have has a shell project and another module that has a prism service and a view (and a view-model). (mostly based off of Mike Taulty's videos, but in WPF rather than silverlight). I setup the prism-service to call my web service. It seemed all setup right, but w...

wcf exception when the dataload increases

iam working in an silverlight application witha datgrid displaying the records as per the value of a text box when the records exceeds 3000 it displays an error as below and it works fine when the rcord count is below 3000 ? how to overcome this exception or to handle this base {System.Net.WebException: The remote server re...

WCF can't serialize cyclic references

I have a database with a lots of relationships between Tables and a Silverlight client that connects to my server with WCF service on ASP.Net side. First i used LINQ to SQL as a robust mapper tables to object and in a WebMethod that returns a List<Foo> of my Database's object(suppose GetFoo()). The Foo has lots of relationships with oth...

What is the benefit of hosting WCF service in WAS?

If we Host WCF in WAS then we do not need to install IIS completely. Is this really a big advantage of hosting in WAS? ...

Complexity of web service types

I have developed some basic web services using WCF. So far the return types have been fairly simple. Here are the Operation contracts that are working correctly: [OperationContract] string Vessel(int ID); //lists all vessel [OperationContract] List<string> Vessels(); [OperationContract] List<string> PortsLike(string LikeStr); [Operat...

WCF - Catching faults on the server and returning custom types instead

We are trying to figure out a way to modify WCF service behavior to catch all exceptions and instead of returning faults to the client, it will populate a custom return object with exception data and return that. So far, we haven't had much luck. I found this example: Catching custom faults However, it doesn't return custom types as we ...

WCF endpointBehaviors extension not picked up when the name param is present?

I am trying to extend my service endpoint behaviour with custom MessageInspector, extension works fine and its picked up, but only if I don’t define the “name” parameter on behaviour tag and don’t define specific behaviorConfiguration on the endpoint. This means I am extending all endpoints and this is what I don’t want. Could anyone ple...

How do I prevent WCF from auto-serializing byte-array as base-64 encoded string?

When invoking a service, my client code passes in data. One of the data members is a byte array, so WCF will automatically encode this into a base-64 string during serialization. The problem is, the data contract of the service is expecting a byte array, not a string, so deserialization of the data will result in an exception: Expecting...

Should I expose web methods via ASP.NET MVC actions or WCF?

I want to be able to Ajax-ly retrieve JSON data from some kind of web service. (The web service calls will be wrapping a call to SQL, processing the DataSet returned, and returning a JSON representation.) Initially, I thought an ASP.NET MVC project with appropriately named Controllers and Actions that return JsonResults would suffice. Ho...

Log WCF Data Services POST contents

What is the best way to log the contents of anything POSTed to a WCF Data Service? I have tried using the service trace viewer but only see WebHeaders? Thanks ...

How do you differentiate between application and infrastructure endpoints?

I'm creating a custom behaviour for WCF which can (for interoperability reasons) only function correctly when a service exposes a single application endpoint. I would like to be able to use the IServiceBehavior.Validate method to check that only one application endpoint is exposed by the service. Currently I'm doing the following: publ...

WCF Service as Windows Service woes (Windows 7)

I followed the steps here to make my existing WCF service (already working fine as console application) be Windows Service as well, on my Windows 7 machine which is also my development machine. No matter what I tried, when doing the last step of using installutil, I'm getting the following message in the command line: Exception occurred...

Web Service or WebServices

I am in the process of creating an application which will communicate with a single server where WCF Web Service(s) would be installed. I am a little new to this process and was wondering which of these two options would be better in the long run to handle the load for a significant amount of users: 1- Create and install a single Web Se...