wcf

Can an Ajax-enabled WCF Service pass back a DataTable as a Sys.Data.DataTable?

Can an Ajax-enabled WCF Service pass back a DataTable as a Sys.Data.DataTable? Like this but in WCF. My OperationContract looks like: [OperationContract] public DataTable GetEmployees() { NorthwindService ns = new NorthwindService(); return ns.GetEmployees(); } Through the Firefox error console I get t...

Best .NET Books covering ASP.NET 3.5 with ASP.NET AJAX

I'm looking for the best technical books that cover ASP.NET 3.5 with ASP.NET AJAX? Ones that gives the strongest examples of ASP.NET Ajax and exploring the client-side Sys.* objects. Also examples using the WCF-based webservices to handle Ajax requests. ...

Whats the best way to send an event to all workstations

Hi, I hope someone can guide me as I'm stuck... I need to write an emergency broadcast system that notifies workstations of an emergency and pops up a little message at the bottom of the user's screen. This seems simple enough but there are about 4000 workstations over multiple subnets. The system needs to be almost realtime, lightweigh...

Windows Mobile Development - Where to begin?

Okay, I will shortly be starting down the path of windows mobile development. I know nothing about the subject really and I am looking for people with experience to let me know of any gottchas you may know of. Right now I dont even have a breif of what is requied but the assumption is that the application will be very little more than ...

Can you achieve encrypted bi-directional communication using WCF when the client can be behind a proxy,a firewall or a NAT ?

I have a client and a server both written in .net 3.5 so I've got no interoperability issues. The server is fully accessible on port 443 (I'm hosting it so I can open other ports if needed) The client is however less accessible. It's often behind a corporate firewall, or behind a NAT, or uses an http/https proxy to connect to the inter...

WCF and nullable attributes in the generated schemas

I am trying to do some contract first development, and have already designed a schema where an element has minoccurs=0 and nullable=false. However I am not able to make a DataContract or XmlSerializer that generates this xsd. I have an idea that this is not possible. The only solution I have found is an ugly one: http://www.theserversi...

Configuration binding extension could not be found.

I have created a simple wcf service which used the WCF Service Library template. Everything works fine when using the default soap bindings, however when i attempt to modify the service to add a REST binding it fails with the following error: "Configuration binding extension 'system.serviceModel/bindings/webHttpBinding' could not be fo...

WCF REST Starter Kit - A property with the name 'UriTemplateMatchResults' already exists.

Hello, I just started with the WCF REST Starter Kit. I created a simple service that return an array of an object. Using the browser, everything works fine but when I use a WCF client, I get an ArgumentException. I'm not using IIS and here is the code: The contract: [ServiceContract] public interface IGiftService { [WebGe...

WCF username without certificate

I'm working on a project where I need the following WCF service on server side (.net 3.5) WPF client for the client side (.net 3.0) I have an existing application that I have to utilize the authentication and authorization from (on the server side). I also need to store some metadata about the user in the WCF Service's Thread Principa...

traversing object graph from n-tier client

I'm a student currently dabbling in a .Net n-tier app that uses Nhibernate+WCF+WPF. One of the things that is done quite terribly is object graph serialisation, In fact it isn't done at all, currently associations are ignored and we are using DTOs everywhere. As far as I can tell one method to proceed is to predefine which objects and ...

ASP.Net: Is it possible to cache the js-proxies generated by scriptmanager?

We have the following code: <asp:ScriptManager runat="server"> ... <Services> <asp:ServiceReference Path="~/JSONServices/ProfileService.svc" /> </Services> ... This results in a javascript proxy found in /JSONServices/ProfileService.svc/js this javscript has content expiry set to the same t...

How to write a socket based Custom Transport for WCF

I have a mobile platform that I am trying to write some communications code on. The platform provides a proprietary communication mechanism that is based on standard socket functions. Basically, the platform's socket API looks exactly the same as the standard Windows Socket API, except with a prefix on each of the functions. I would l...

In WCF - In the "Faulted" Event - How Do I Get The Exception Details?

I have a WCF server and I'm tapping into the "Faulted" event which stupidly only gives me "object sender, EventArgs e". How can I get the current 'Exception' object in that event? Or, if there is some sort of global system way, like Environment.GetCurrentException(), that would be awesome, but I can't find it. EDIT: To help explain wha...

Can WCF Service have constructors?

When I new a WCF service in my solution, can I do the following, have a constructor with parameter to pass in? If yes, how, when and where does the runtime fill in my required IBusinessLogic object? [ServiceContract] public interface IServiceContract { [OperationContract] ... } public class MyService : IServiceContract { I...

When would you ever use In-Proc WCF Components?

I'm studying Juval Lowy's excellent Programming WCF Services and I've just created a really simple in-proc component using his InProcFactory class that comes along with his ServiceModelEx library. Why would you do this instead of using just regular classes in your project? Using his method requires referencing his library and creating ...

Database Abstraction in a Reporting Application

In a reporting application, Is it possible to abstract reporting logic and the database schema details? I have a Reporting Services application with a reasonably complex reporting logic, I am trying to migrate the application to some other databases. (Databases that are built for the same purpose but developed by different software-hou...

WCF Exceptions thrown by ChannelFactory

I'm connecting to a service and using a Channel created by ChannelFactory. I would like to know what exceptions can be thrown while invoking service interface's methods (for example if there is a service interface named ICalculator and I'm invoking its Add(5, 4)). I can't google the topic because i don't really know how to name the probl...

WCF RESTFul POST question

Hi, I have a WCF RESTFul service declared thus: [ServiceContract] public interface IGasPriceService { [OperationContract] [WebGet (ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "/GetGasPrice/For/ZipCode/{zipCode}" )] GasPriceData GetPriceData(stri...

WCF security

I have a WCF service that is hosted in a windows application. The service uses netMsmqBinding. The client and the host are in different domains. My question is how do I configure the security settings? The data that is transferred is sensitive so I would like to secure the communication between the client and the host of the service. T...

wse 3.0 or wcf and where to start

I have created a web service which has a couple of methods developed using .net 3.5. The clients who will access the web service will be using .net 3.0. I have been asked to make this web service "secure" and having looked on the net have seen a number of options. First one is to use WCF with .net 3.5 for the service. If I develop the...