wcf

Best way to share data between .NET application instance?

I have create WCF Service (host on Windows Service) on load balance server. Each of this service instance maintain list of current user. E.g. Instance A has user A001, A002, A005, instance B has user A003, A004, A008 and so on. On each service has interface that use to get user list, I expect this method to return all user in all servic...

WCF: DuplexSessionChannel, Asynchronous Operations and an Exception

Hello. Today I have a WCF question, though it probably pertains to other Networking models in .NET as well. I have a WCF service that exposes a Send(Message) OperationContract, which is OneWay = true. Now this service has a callback channel to return Messages to the client. Anyway I am trying (successfully) to call this Send method fr...

Transferring JSON from YUI client to WCF web server?

From YUI Client I want to send data using JSON object to WCF webserver. I am using YUI's YAHOO.util.Connect.asyncRequest('POST', uri, callbacks, postdata) method to send the data to Webserver. But the web server is not responding to the call. I see there is a problem in sending postdata. WCF expects it to be part of URI, but in YUI we a...

Create multiple connections in a single browser window with wcf in silverlight

Hello to all I have develop a silverlight 3 chat application in which one user chat with multiple users on a same time. In my application a chat window is a silverlight control and a user can open more than 10 chat windows on same time in a single browse window.means every chat window make connection with wcf. I have all...

WCF : Pattern for closing the state of a ServiceClient

Hi I want to ensure that a WCF-ServiceClient State will be closed after using the service. I implemented the following Code to ensure that: public static class ServiceClientFactory { public static ServiceClientHost<T> CreateInstance<T>() where T : class, ICommunicationObject, new() { return new ServiceClientHost<T>(); ...

Workflow Foundation: Do I use a Web Service or WCF - what's best for my WF?

I'm building a workflow app to investigate the technology. I can't decide whether to go for a web service (and a technology with which I'm basically familiar) with WebServiceInputActivity's or WCF and ReceiveActivity's (and a new technology that I'll have to learn). Are there any major reasons to go either way? Clarification: Are the...

How to send HTTP Auth Credentials with a WCF Service Reference

I'm attempting to consume a HTTP Basic Auth Secured PHP WebService using VB.NET. I've so far managed to get 100% perfect integration by adding it as a Web Reference and doing the following: Dim Credentials = New System.Net.NetworkCredential("username", "password") Dim CredentialCache = New System.Net.CredentialCache() CredentialCache.Ad...

WCF and HTTP GET

My WCF service exposes this function public SerialNumberInfo GetSerialNumberInfo(string serialNumber) { } Is there a way to enable HTTP GET on my WCF service? Example: http://localhost:8004/MyService/GetSerialNumberInfo?serialNumber=4 ...

Returning DataTable objects with WCF service

This is a strange problem that I am having with WCF trying to send DataTable in the response. I have the following service contract: [ServiceContract] public interface ISapphireDataService { [OperationContract] DataTable LoadData(string query, DateTime start, DateTime end); [OperationContract] string LoadDataTest(); } ...

Connect to an asmx page behind https, requiring sign only, using WCF

I'm trying to connect to a web service that requires me to sign with a certificate before I connect. In WSE 3.0, all I had to do is create a certificate policy and choose the "sign only" radio button. That worked fine in WSE 3.0, but I want to use this on Visual Studio 2008+ (wse 3.0 only supports 2005). In order to get around the 2005 ...

Can a WF/WCF 4.0 service be accessed from 3.5 SP1 clients/websites?

If I was to develop a workflow hosted in WCF using .NET 4.0, is there anything that will prevent me from accessing it using a 3.5 SP1 based client or website? ...

WCF Ajax service - How can I pass an Array or JSON to the service? What should the method parameter type be?

I have a very simple WCF service I would like to pass it an array or json? [OperationContract, WebGet(ResponseFormat = WebMessageFormat.Json)] public string GetPreDisplay(string inputData) { //DoSomething with inputData return "Sweet!"; } My javascript... var data = [paymentControls['claimNum'], paymentCo...

Questions on WCF

I am learning WCF,one of the benefits of WCF is that you can use WCF even the client and service are not in the same network.Can anyone explain why? Why using normal asp.net services, .NET remoting or Windows enterprise service client and service have to be in the same network? Another question is that does the client needs to have a se...

Does one use WF and WCF together to build a messaging system?

I am looking to build an messaging infrastructure to facilitate communications between different systems in our organization. There are many way to go about this. I have looked into nServiceBus and MassTransit. How does WF/WCF fit into this - if at all? If it does, are there any good articles, documentation or books that focus on this...

How does ASP.NET MVC relate to WCF?

A Guide to Designing and Building RESTful Web Services with WCF 3.5, this article explains the foundations of REST and how it relates to WCF. MVC uses REST as the architectural model. I am guessing one can use the .NET MVC to create web applications that have both a front end and an API point, but I am not sure if the safe way of buildi...

WCF; what's the big deal?

I'm just about getting into WCF; but from what I've read so far, like the sample scenarios I found on MSDN and some other sites, I can do all that with web services and applications that call those web services. So why the need for an elaborate layer like WCF? Most of the comparisons I've googled for explain it more from a programming p...

Wcf binding type from wsdl.

Is there a way to retrieve wcf binding type and security mode just from a wsdl? i.e. I want to know what bindings are supported by a wcf service by reading it's wsdl, is it possible? Thanks ...

Silverlight WCF service not working when deployed.

I have a WCF service method in a Silverlight application that inserts some data into a SQL Server database deployed on a shared GoDaddy server. Some of the methods work, and some do not, but all of them work when the application is run locally (with a local database). I get the generic "The remote server returned an error: NotFound", a...

What are the internal limits to WCF

WCF has lots of limits imposed on it to protect against DoS attacks and other developer brainlessness. What are these limits? And how can they be overriden? Specifically, if I was to try to send a large number of messages in a short period of time to a variety of different clients, what are the internal WCF limits they may cause message...

how to make WCF webHttp behaviour accept HEAD verbs?

I have a WCF service hosted in a Windows service. I've added to it a webHttpBinding with a webHttp behaviour and whenever I send it a GET request I get http 200 which is what I want, problem is I get an http 405 whenever I send it a HEAD request. Is there a way to make it return http 200 also for HEAD? Is that even possible? edit: that...