wcf

WCF ErrorHandler

Hi, I have read several documentations about building custom ErrorHandler (by inheriting from IErrorHandler). Unfortunately, I have several doubts about how doing it. The problem is that I don't exactly understand the meaning of the two methods of IErorrHandler (i.e. ProvideFault and HandleError). For me, the HandleError is used to pro...

Best practices for web service timeouts

It there any article/book that defines upper bounded design limits for WS timeouts? Do you timeout at the server or recommend the client specific timeouts too? Is there a common best practice like "never design WS that can take longer than 60 seconds, use an asynchronous token pattern" I am interested in knowing what you do or your opi...

How to implement an inherited Dictionary over WCF

I’m trying to implement a dictionary for use with WCF. My requirements are: actual (private variable or base class) type equivalent to Dictionary Comparer = System.StringComparer.InvariantCultureIgnoreCase Custom (override/new) Add(key, value) method (to include validations). Override ToString() Use of the same type on both the cl...

WS addressing using WCF

Hi How to implement the WS Addressing using WCF ? Thanks in Advance Sekar ...

Clients to upload data to central server using WCF, how to verify data was uploaded?

Hi, Less than 10 client computers, each with their own installation have to upload data to a central server. The client database looks like: tblSales - rowGuid - randomNumber Central Server database: rowGuid randomNumber dateInserted I plan to use WCF to send the files to the central server. How can I verify the rows were insert...

Creating WCF messages with mutiple namespaces.

I'm trying to create a WSTransfer implementation (I realise Roman Kiss has written one already for WCF - but it doesn't actually meet the specifications) I've ended up abandoning data contracts on the service contacts because WSTransfer is loosely coupled; so each the create message looks like Message Create(Message request). This work...

Will this WCF client side code cause a memory leak?

One of the frequent causes of memory leaks in .Net are event handlers which are never removed from their source objects. Will this WCF code cause a memory leak, or will the lamda go out of scope too, allowing both the proxy class and the handler to be GCed? void AMethod() { WCFClient proxy; proxy = new WCFClient(); proxy.R...

What are the benefits of using WCF?

We currently just utilize soap webservices for all our communication but have been thinking about moving to WCF instead. What are the benefits of using it over an asmx service? If we do go with a WCF service, can other languages still communicate with it? SOAP is standardized and all languages can interact with it. Are there any really ...

Completely Disabling WCF Proxy

How can I configure WCF service and client to completely bypass proxy settings configured in IE. My application works in a LAN and I use both BasicHttp and NetTcp endpoints. ...

WCF javascript proxy not found when endpoint address is not blank

I am trying to setup a WCF service with multiple endpoints with one of the endpoints using the enableWebScript endpoint behavior so that a Javascript proxy will be created on the client (jsdebug/js). When adding the Service Reference to my AJAX ScriptManager, the jsdebug file is not found unless the address of the endpoint is blank. The...

Consuming a REST service from WCF

I'm not that familiar with WCF, but I thought I'll learn while trying to consume an existing service. One of the REST APIs I thought of was the Twitter API. I thought of developing a WPF client that will just output to the screen the last 5 tweets by a certain Twitter user. I was wondering if someone could please briefly outline the st...

WCF service to get a list of GUIDS from a server, what should my contract look like?

Hi, I am designing a WCF service which a client will call to get a list of GUID's from a server. How should I define my endpoint contract? Should I just return an Array? If so, will the array just be serialized by WCF? ...

designing a distributed (over many servers) error logging feature, WCF or ?

Hi, I am designing a error logging feature so our servers (each donig different things) can have a central data store for logging errors. Would it be a good idea to have the various applications writing to the error log file using a WCF service, or is that a bad idea? they can do it just by ADO.NET to the database, which I think is th...

Encoding Mess!! ASP.net,WCF,Linq-SQL..phew!

Hi Guys, I have been pushing to finish off this project since 1 week and have been stuck with one problem that god knows how I missed. We have a sql server database that has 2 tables (of concern here). Table 1 (id,langCode,englishText,translatedTextInUnicode{nvarchar(MAX)}) Table 2 (id,langCode,englishText,translatedTextInUtf-8{...

Choosing best security option for WCF

We have a project that contains a WCF Service and a few clients that connect to it. Some of them are PCs using NetTcp to connect to the service. Few others run on Windows Mobile Devices(Compact Framework), using BasicHttp to connect. We can't use Windows Authentication, because different PCs use different Windows accounts. How can we sec...

Implementing Message Security in NETCF

As far as I know only a subset of WS-Security version 1.0 is supported in NETCF and it uses X.509 certificates. How can I obtain such a certificate to implement it in my application and prevent others to use my WCF service? ...

Problem using Mex

My application uses both NetTcpBinding and BasicHttpBinding but each of them will expose a subset of my service class. I have created the service as below. The problem is that even though I just added 3 of my contracts to the Mex binding, all of the contracts are shown when I want to add the service to my project. m_ServiceHost = new ...

Sharing service interfaces and model in Silverlight, using WCF

Say I have the following interface that I want to share between my server (a regular web service) and my client (a silverlight 2.0 application): public interface ICustomerService { Customer GetCustomer(string name); } My web service implements this interface, and references a class library where Customer type is defined. Usually,...

WCF Webservice behind public reverse proxy

How can I correctly serve WSDL of a WCF webservice located in a private LAN from behind a reverse proxy listening on public IP? I have an Apache webserver configured in reverse proxy mode which listens for requests on a public IP address and serves them from the internal IIS host. WCF webservice generates WSDL using the FQDN address of ...

Does WCF optimize the client's connection under the hood?

We are currently working on an application that will use a WCF service. The host (the client) is using the excellent WCF Service Proxy Helper from Erwyn van der Meer. What I would like to know... is if I open this object multiple times... will it lead to multiple (expensive) connections or will WCF manage it and pool the connections. T...