wcf

Event Dispatcher for WCF call-backs

I have a server that needs to keep a small number of clients in sync. Whenever there is a change of state at the server, all the connected clients must be informed. I am planning to use a “callback contract”, I can get hold of the callback reference for each client on the server by using GetCallbackChanel(). I then need to manage...

Publishing a Silverlight with reference to a WCF

Hi, I created a RoleService in my silverlight project and through that got hold of the embership/Role functionality. I am running this on a local machine and is wondering how to publish this to my website. I have 3 web applications: My main web application where the silverlight object shoule be merged into The silverlight project whic...

Secure WCF service

I am very new to using WCF services. Right now I have a WCF service that I call using jQuery. I'm concerned about users making unauthorized calls to the service. What would be the best way to secure my service? ...

Workflow in existing WCF

I have an existing WCF service. Is it possible to add operation contract to the service interface and have the implementation in a workflow? Or I absolutly need a seperate service interface for my workflow? ...

Entity Framework - WCF - Enums?

Hi, I was wondering how people are handling the lack of Enum support in Entity Framework when dealing with WCF services? Common practice seems to be to declare getter & setter in the entity property to private and then create a partial class for the entity and declare the enum property in there. This is all fine and dandy but pos...

svcUtil error 'SchemaLocation' must successfully resolve if <redefine> contains any child other than <annotation>.

I am trying to generate a proxy from a 3rd party wsdl and xsd files. I am calling svcutil like so: svcutil *.wsdl *.xsd /language:C# It returns this error: 'SchemaLocation' must successfully resolve if contains any child other than . There is only one element in all the files, and it's schemaLocation attribute points to another f...

How to authenticate in WCF services in BasicHttpBinding?

Hi, I am developing WCF services with basicHttpBinding, these services should be accessible using .net 1.1 & .net 2.0, for this purpose I am using basicHttpBinding. In old ASMX web services I assed one Soap Header (AuthHeader) to authenticate the user every request.How Can I authenticate in WCF using basicHttpBinding? Any sample Or tuto...

How to specify list parameters in WCF Test Client (WcfTestClient.exe) ?

Hi All, I am using WCF Test Client (WcfTestClient.exe) for testing one of my wcf services. I have a message contract which has a list of DataContracts as : My message contract is as follows : [MessageContract] public class UpdateInvoiceStatusesRequest { private List<InvoiceStatusHistory> _invoiceStatusHistory; ...

WCF - Executing unneccesary service calls

Hi All, I am using Silverlight + WCF (SOA) + NHibernate combination. Currently i am facing one strange issue of unnecessary service calls. Suppose when i click on the tree item to call one service call. But in the server side it is called two times. And this is happening for one perticuler service only. I have checked all the param...

Why does maxConcurrentSessions default to such a low value? And what is a safe value?

In WCF maxConcurrentSessions defaults to 10, so limiting a server from having more then 10 open TCP connections to it. Why is this so? Is it safe for me just to set it to a very high value for a server that has a "handful" (or two) of clients, but needs to keeps a netTcpBinding open for each clients due to sending events to the clients...

What is the trade of between OneWay and Async calls for broadcasting events to clients? (WCF)

I am writing a WCF (netTcpBinding planned at present) client/server application that has to support a “handful” of clients including sending events to the clients. I do not wish the server to block while the clients process the events. Logically I cannot see match difference between marking the callback methods as “OneWay” or cal...

Refine: Castle ActiveRecord SessionScope implementation for WCF with PerSession InstanceContext

Hi Guys to facilitate lazy loading on our WCF Services that use AR I created a "Session Scope PerRequest" solution for WCF. [edit] Ok so I put the question on the end :) so bear with me and start reading at the end. :) [/edit] If you want to use ActiveRecord in a website or webservice you have to tell it via the configuration it is run...

WCF REST Starter Kit has ugly URIs

This starter kit seems to use incredibly ugly URIs that include a "Service.svc" filename. Surely if you're going to have a service called say "Users.svc" you'd want the URI to look like '/users/' rather than '/Users.svc/'? Is there a way this can be fixed? ...

Are all Serializable classes valid for WCF methods parameters and/or Data Contract members?

I am in the process of porting some .net remoting code to WCF. Can I safely assume that all classes that are Serializable and works as .remoting method parameters will work with WCF using the binary message encode? If not is there a “rule of thumb” that I can use to estimate what problems I will hit? ...

WCF Service invalid with Silverlight

I'm trying to get WCF working with Silverlight. I'm a total beginner to WCF but have written asmx services in the past. For some reason when I uncomment more than one method in my service Silverlight refuses to let me use it, saying it is invalid. My code is below if anyone could help. I'm using the Entity Framework if that makes a diffe...

Has anyone know how to consume WCF Certificate based security WebServices from an iPhone app?

I'm trying to interact with a WCF web services using certificate based security and both message signature and encryption but with no luck. I had successfully implemented signature only communications, but when I create the elements I get an error verifying the message. Has anyone have any hints on how to implement this? Thanks!!! ...

Getting class type from WCF service

In my client, I'm trying to declare an entity type from the service.... MyService.MyClass myClass = new MyService.MyClass(); .... MyClass isn't available. The assembly MyClass is within is referenced by MyService. What am I missing? ...

dynamic refeences for WCF service

I have a WCF service hosted on IIS. I have a smartclient application which calls this WCF service through endpoints defined in app.config file. Now when i publish this application using this configuration, IT throws an exception saying that no endpoint is listening at localhost. How can i make it dynamic. By dynamic I mean IF i update ...

How can I ignore a property when serializing using the DataContractSerializer?

I am using .NET 3.5SP1 and DataContractSerializer to serialize a class. In SP1, they changed the behavior so that you don't have to include DataContract/DataMember attributes on the class and it will just serialize the entire thing. This is the behavior I am using, but now I need to ignore one property from the serializer. I know that...

Self-Hosting WCF for AJAX Client

Hi, I'm trying to self-host a WCF web service and provide a HTTP endpoint with ajax support. Pretty much everything I've found about WCF and AJAX are talking about IIS, which I don't want to use. I've build a simple Console App to host the service. My service only have a single method: [ServiceContract] interface IMyService { [Op...