wcf

How can I send a notification message from server to all clients in WCF (broadcast you can say)?

I want to send notification message every second from net tcp WCF service to all clients, Broadcast you can say? After the helpful answers I wrote the following method that will send notifications (heartbeat) to all connected users foreach (IHeartBeatCallback callback in subscribers) { ThreadPool.QueueUserWorkItem(delegate(object st...

What is Public key infrastucture

I need to know what is public key infastructure. I need to know is this related to sending requests and response as like WsHttpbinding in WCF. ...

Is the WCF REST Starter Kit dead in the water?

We are looking at switching from using WCF for our service layer in applications to REST. So far we are assuming that the way to do this is to use the WCF REST Starter Kit. However this is still in Preview 2 and hasn't been updated since March 2009. Is this project dead in the water? If so, what alternatives do we have for creating .N...

Is RESTful WCF service a fully released version? it comes as Preview_2

Is RESTful WCF service a fully released version or its a BETA version, because when downloading the msi is 'WCF_REST_Starter_Kit_Preview_2.msi'. What does this Preview_2 means? ...

TCP/IP failed to establish an outgoing connection

We're seeing TCP/IP warning and quite a few connection failures on our web and sql server (Win2k8 SP1 w/ IPv6 enabled) and it happens more often when the worker process/sql server process has been running for a couple of days continously. I am wondering what causes these warnings? What is the default number of tcp connections allowed and...

Why is my Winforms-hosted WCF service single threaded?

I have a WCF service that I'm using to replace an old ASP.NET web service. The service appears to be working fine but it is unable to handle simultaneous requests for some reason. My implementation of the service has the following properties: [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = Concurren...

"maximum string content length quota (8192) has been exceeded while reading XML data" calling WCF via mexAddress moniker

I'm attempting to call a WCF service via mex from a classic ASP page. I've got the call working using the details on MSDN, but if I pass back an amount of data exceeding 8K I get an exception stating: The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changi...

WCF WebInvoke ResponseFormat

Hello I have a WCF restul service and I want to allow the user to choose what request format they want, i have the decorations [OperationContract] [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "getstreamurl?ch={ch}&format=xml")...

When to dispose wcf object with async pattern

Supposing I start off with the synchronous version: using(var svc = new ServiceObject()) { var result = svc.DoSomething(); // do stuff with result } I wind up with var svc = new ServiceObject(); svc.BeginDoSomething(async => { var result = svc.EndDoSomething(async); svc.Dispose(); // do stuff with result },nu...

WCF Client Configuration: how to check if endpoint is in config file, and fallback to code if not?

Morning: Looking to make a Client that sends serialized Message objects back to a server via WCF. To make things easy for the end-developer (different departments) would be best that they didn't need to know how to edit their config file to set up the client end point data. That said, would also be brilliant that the endpoint wasn't e...

svcutil.exe - Proxy generated not allowing for nullable fields

I am trying to consume a web service specified using WSDL by creating a WCF proxy using svcutil.exe, but the WSDL specifies that some of the operations have parameters that are optional (minOccurs="0"), for example: <xs:element minOccurs="0" maxOccurs="1" name="meetingId" type="xs:int" /> Unfortunately, the generated proxy does not al...

Trouble accessing functions of NetAPI32 wrapped in WCF that create users..

Hi stackers... I have created a project which is basically described as a consumable service to create or edit users on a remote computer. The idea is to connect to a server and add a user. The structure of the project is as follows: WCF Service: to expose functions to create/edit/select users Utility assembly: Netapi32 COM functions ...

System.AddIn in WCF

Hello, I have a question about use AddIn framework, provided by .NET Framework (currently use 3.5 SP1) implemented in System.AddIn namespace. I build a prototype with simple AddIn. This AddIn is instantiated in business logic of WCF Service. Implementation of business logic (only necessary code is shown): internal class BusinessLayer...

Programmically configuration of endpoints vs. web/app.config

Has any put much thought into this? Personally, I think managing endpoints in configuration files are a pain. Are there any pros/cons to doing one over the other? ...

What is an appropriate XML type for web service?

Current Implementation Sql Server 2005 Database with a table called messages with a column called MessageXml of type xml. C# Library project with a Linq to Sql class that generates a class called Message with a field called MessageXml of type XElement. WCF Webservice that exposes a MessagePayload class with a property called MessageXm...

How do I call WCF client from Excel 2003 VBA?

Hi There, As the question asked, how do I call WCF client from Excel 2003 VBA? I saw there is a place where I can call web service, but I have searched through Google, all the results I get is not possible to call a WCF client from VBA. I would like to know sort of what method to use before I do anything with my code, don't want to wa...

WCF differences between .NET 3.0 and .NET 3.5

What are the differences between WCF using .NET 3.0 versus .NET 3.5? I need to understand what has improved between the .NET versions. ...

web services interface design which returns large amount of data

Hello everyone, I am designing a WCF interface which returns status of all orders (Order data structure includes two members, a string type ID and an enum orderstatus, and designed as DataContract), the total # of orders are very large, about 10M. I am concerning about the traffic and impact to server side if client calls this interface...

problem when sending images through wcf from silverlight

silverlight uses wcf with basicHttpBinding i send the image as an byte[], and it's working as long as the image has less than 20KB but when it's bigger i get the error: The remote server returned an error: NotFound in the Reference.cs public bool EndSave(System.IAsyncResult re...

WCF MSMQ priority

Is there any way to do priority settings with MSMQ using WCF. I know this might be a duplicate question so bear with me. I basically just need to give a low and a high priority. I am not really wanting to do 2 services as both of them would be doing the same. Any Ideas? ...