wcf

WPF / WCF Push Notification

Does .NET 3.5 (WCF, or other) offer any type of push notification service? ME: I have a server and a client. I want a service to run on the server and if x happens then push a notification to the client. I don't want to pull the server every x minutes to gather the information. – Jeremy H (23 hours ago) Kent: Yep, look at WCF callbac...

Why cant my Silverlight application load data from sql on live site using WCF?

My silverlight application loads data fromt he SQL fine when I build locally but when I upload it to the live site it will just wait for data to be loaded but show no errors. It worked up until yesterday where I fear I may have changed a setting somewhere and now I cant access the data it seems? UPDATE 1: it seems to be a problem with t...

Can I setup an IP filter for a WCF Service?

I'm modifying my WCF API to include a new service that should be exposed to internal IP addresses only. All of the services in my API are available in SOAP, POX and JSON. What I'm looking for is a behavior or something that allows me to implement a simple IP address filter, to process requests from internal IP's and deny everything els...

Designing a WCF service to send back image information.

I am designing an WCF service which will return a list of vendors for a search query. I need to send the logo's of these vendors to anyone who consumes the service. What would be the best way to approach this. Do i just send the image paths across or is there a better way. ...

Exposing Objects (DataContracts) that may not be directly used by a WCF service?

I have some object classes that use inheritance. It seems that I can only get access to the objects that are directly used by a service. Let me show you what I am trying to accomplish: [DataContract] public class Object1 { [DataMember] int Id {get; set;} } [DataContract] public class object2: Object1 { [DataMember] string N...

What to create using .NET 3.5? A Web Service or a Windows Service

I have to create a Web Service that can service around 100,000 clients. I have been creating Windows Services for quite some time and use WCF binding in them. The Windows Services use HTTP binding and provide a http end point that can be used by any client that can talk using SOAP. I am a little confused whether I should create a ASP.NET...

Wiring up WCF client side caching?

My application uses client side enterprise caching; I would like to avoid writing code for each and every cacheable call and wondered if there is a solution such that WCF client side calls can be cached, even for async calls. Can this be done with WCF "behaviour" or some other means? Code examples? ...

BadImageFormatException encountered with WcfSvcHost and IIS WCF host

Creating a WCF Service Library in Visual Studio 2008 on Vista x64 is troublesome when referencing an x86 DLL. A service that calls a 32-bit DLL is required to have a platform target of x86 to run on a 64-bit OS. When you do this, the WcfSvcHost throws a BadImageFormatException when you attempt to debug the service. There is a bug report ...

WCF XML Serialization

Back in the days of 2.0 serialization I could create a serialized version of an object that would result in the following example: <transactionMessage messageDate="1/1/2001 11:00PM" messageId="abc123"> <transaction property1="Value" property2="value2" /> </transactionMessage> I would do this with the Serializable() attribute and t...

WCF windows service issue with MSDTC

I've a .net 3.5 windows service which uses msmq running on 2008 application server.This service communicates with the sql 2005 database on the database server. Am getting an error mentioned below on calling this service from my aspx page on 2008 web server: "Network access for Distributed Transaction Manager (MSDTC) has been disabled. ...

Ordered Delivery with netMSMQbinding

Is it possible to guarantee ordered delivery when using WCF netMSMQbinding? We are putting an insert command followed by a number of update commands on the same queue, and occassionally one of the updates beats the insert. Having added extensive logging it is clear that they are being added to the queue in the correct order and being p...

How to create an ssrs report using a wcf datasource?

I am trying to create a report using a wcf service as a datasource. The only somewhat definitive source of information is a blog entry which I am finding does not seem to work as advertised, possibly because I am using MSSQL 2008 instead of 2005. Is it possible, and if so, how are people doing it? ...

Translate this app.config xml to code? (WCF)

I have the following app.config section that I need to translate into code. I have seen several examples, but still cannot quite get it to work. Could anyone help? <system.serviceModel> <bindings> <basicHttpBinding> <binding name="MyService" closeTimeout="00:01:00" openTimeout="00:01:...

When is it appropriate to use WCF over webclient or httpwebrequest?

I'm looking to understand when to use a WCF services instead of just using webclient or httpwebrequest. I guess I'm also looking to understand the difference between the design patterns that would be appropriate for both. ...

BasicHttpBinding with Certificate authentication - error "forbidden"?

I'm trying go get WCF server and client mutually authenticate each other using SSL certificates on transport level using BasicHttpBinding. Here's how the server is getting created: var soapBinding = new BasicHttpBinding() { Namespace = "http://test.com" }; soapBinding.Security.Mode = BasicHttpSecurityMode.Transport; soapBinding.Security...

WCF Custom Service Behaviour

Context: I am hosting a number of services using WCF. I'd like for each of them to support a Ping operation (heartbeat, keep-alive, whatever...). But, I'd rather not go implement IPingable on each one. Instead, I'd love to do something like the serviceMetadata behavior does and dynamically add a channel dispatcher. This would mean a...

Webservice or WCF or what

Hi, I have an application that users access via phone (touchtone) or SMS. Now want to give them web access. Thought a webservice communicating with app via TCP would do it. TCPClient connection code that works OK in the app fails in the webservice with 'Host actively refused connection' Makes me think that IIS won't allow a Webservice ...

Improving WCF performance

Could I know ways to improve performance of my .Net WCF service? Right now its pretty slow and sometimes it gets clogged & eventually stops responding. ...

Using remote events in wcf

I want to deliver events from a server application to multiple clients. Since I'm using wcf to expose a service interface to the clients I gave a look in the wcf async callback mechanism, but it seems not to support dispatching one message to multiple clients. Is MSMQ a better way to implement delivery of events to multiple clients. Th...

Transaction across basicHttpBinding

Hi, we currently have an asmx webservice which exposes a single method to make various updates to a Sql database, wrapped internally in a SqlTransaction. I am re-writing this service in WCF and we would like to split up the existing method into sub-calls accessed through various different WCF services. There is a restriction to use bas...