wcf

WCF PollingDuplexHttpBinding questions

Hi, I've been looking at the PollingDuplexHttpBinding available in silverlight 2 and 3 and had a couple of questions I haven't been able to find any information on. Am I able to use this in non-silverlight apps? From the descriptions it doesn't seem like its actually polling, but maintaining an open connection and reconnecting as nece...

Can IIS-hosted WCF service be configured for BOTH Windows Auth and Anonymous?

I've got a small WCF webservice working with the built-in WCF Service Host and with hosting by the Visual Studio 2008 built-in development webserver. I these hosting enviroments I have relied on the WCF Test Client for invoking the service methods. Now I am running into problems with my next phase of testing: I have it hosted in IIS...

WCF Http Bindings, Require SSL

I have the following binding I'm using with my wsHttpBinding webservice. <binding name="wsHttpConfig"> <security> <transport clientCredentialType="None"/> </security> </binding> The issue is that it allows for the client to connect using either Http or Https. I would like to require them to use SSL. I tried adding the followin...

Server side for a multiplayer turn based silverlight game.

I am currently in the early stages of designing a browser based game using silverlight. The game is going to have many matches of 2-4 players (perhaps even up to 8) and will be turn based. The Front end is Silverlight 3.0 since I have some experience there. I am trying to figure out what the back end should be. Since the game is turn b...

Samples for RESTful web services for WCF

Hello everyone, I am new to RESTful web services in WCF, but not new to WCF. I want to develop some simple RESTful web services in WCF which manually be accessed from browser. Any good samples or documents to recommend? I am using C#. thanks in advance, George ...

Service Design (WCF, ASMX, SOA)

Soliciting feedback/thoughts on a pattern or best practice to address a situation that I have seen a few times over the years, yet I haven't found any one solution that addresses it the way I'd like. Here is the background. Company has 3 applications supporting 3 separate "lines of business" that are very much related to each other. Tw...

design considerations for a WCF service to be accessed 500k times/day

I've been tasked with creating a WCF service that will query a db and return a collection of composite types. Not a complex task in itself, but the service is going to be accessed by several web sites which in total average maybe 500,000 views a day. Are there any special considerations I need to take into account when designing this? ...

What are the differences between WCF and traditional ASP.NET Web

I am new to WCF and Web Services in general. What are the improvements that WCF brings to the table? Can anyone give a side-by-side example of a traditional web service and the same one written using WCF and point out the differences and advantages? Duplicate question http://stackoverflow.com/questions/406665/moving-asp-net-webservi...

WCF timeout exception detailed investigation

We have an application that has a WCF service (*.svc) running on IIS7 and various clients querying the service. The server is running Win 2008 Server. The clients are running either Windows 2008 Server or Windows 2003 server. I am getting the following exception, which I have seen can in fact be related to a large number of potential WCF...

Declaring Known Types for data contracts in different assemblies

I have a method in a WCF service which returns a complex type (myComplexResult), which includes as one of its members a List (Of Common.myBaseClass). I want this list to hold items which can variously be of type Foo.myClass1 and Bar.myClass2, both of which inherit from Common.myBaseClass. Note that all of these classes are defined in d...

How to test WCF timeout settings?

Hi, How can I unit test the effect of each WCF timeout setting? I want to ensure that I select good values and I also want to make sure that my exception handling code is solid. I created client program and a server WCF service to test the timeout settings. In my service implementation, I added a Thread.Sleep(5000). On the client-side,...

Consume WCF Web Service using Objective C on iPhone

I am having a hard time consuming a very simple (Hello World) WCF web service in my iPhone app. From what I have read, you must manually create the request message then send it to the web service URL. I was able to accomplish this on a .asmx web service, but not with a WCF service. How do I know the correct format of the request SOA...

fine-tuning WCF bindings

I've got a WCF service that is working for basic queries. I started with simply the default out of the box bindings (WSHttpBinding with default values). The data-contract is for an array of custom objects, each object comes to about 6k in size. When I send up to 5 of these (in a single transaction), it works fine. When I attempt to s...

Set another config file for the proxy

Hi, I have a WCF client generated with Add Service Reference, problem is that the classes of this client will get embeded in a .msi (WIX project), together with its config file. From the msi, proxy doesn't recognize the config file. I want take config file outside of msi and tell the proxy to read what it needs from there. Is there a...

Updating my Model in MVC pattern to WCF REST - Services Layer Implementation

I have a MVC pattern in place where I have been developing WinForms and WebForms against. Now, I would like to move onto Silverlight and thus need to 'web services'-enable my Model layer. Where do I start? I can't seem to find any good resources. Many talk about EF or ADO.NET Data Services. What do I need to do to my Model layer t...

wcf rest starter kit 2 - uri template

can anyone tell me where in the rest starter kit 2 how I modify the uri template to accept two parameters? so the uri will be ... http://localhost:25000/Service.svc/5/3 where 5 will be the employee id and 3 the department id. For OnGetItem I am not sure where to modify the template anymore? Thanks ...

Tips for calling WSE service from WCF?

I've got a WSE 3.0 web service that I'm trying to call using a VS 2008-generated WCF client. VS generated the client with a basicHttpBinding but I'm getting the exception "Microsoft.Web.Services3.Security.SecurityFault: Security requirements are not satisfied because the security header is not present in the incoming message." I'm assu...

wcf rest starter kit 2 ICollectionService<ITem>

I have created a Rest collection WCF Service using the starter kit. Everything is fine except i need to modify the OnGetItem(string id) to accept an additional parameter such that the URI becomes http://localhost/service.svc/1/5 where 1 = department id and 5 = employee id I can see the ICollectionService within the abstract class co...

Best-practice for naming a WCF endpoint for an iis hosted service?

What is best practice for naming & hosting a WCF service endpoint in IIS? Assuming an example scenario of: A service dealing with customer entities A solution namespace of Company.Entities.Customer Company.Entities.Customer.ServiceHost contains the IIS Host (ie. just the .svc file) Company.Entities.Customer.Service contains the servic...

WCF: how to generate a single WSDL document, without WSDL:import?

Hi, I'm troubling into an issue... I'm trying to find a way to generate a single wsdl document from my WCF service, i.e. without any link to external documents. I've used FlatWsdl to remove all xsd:import links, bou my generated wsdl still contains a link to an external wsdl document via a wsdl:import declaration: <wsdl:import namespace...