Learning WCF: A Hands-on Guide

Author: Michele Bustamante
3.6
All Stack Overflow 25
This Year Stack Overflow 1
This Month Stack Overflow 2

Learning WCF: A Hands-on Guide

3.6

Review Date:

Comments

by anonymous   2018-03-19

In your binding configuration, there are four timeout values you can tweak:

<bindings>
  <basicHttpBinding>
    <binding name="IncreasedTimeout"
             sendTimeout="00:25:00">
    </binding>
  </basicHttpBinding>

The most important is the sendTimeout, which says how long the client will wait for a response from your WCF service. You can specify hours:minutes:seconds in your settings - in my sample, I set the timeout to 25 minutes.

The openTimeout as the name implies is the amount of time you're willing to wait when you open the connection to your WCF service. Similarly, the closeTimeout is the amount of time when you close the connection (dispose the client proxy) that you'll wait before an exception is thrown.

The receiveTimeout is a bit like a mirror for the sendTimeout - while the send timeout is the amount of time you'll wait for a response from the server, the receiveTimeout is the amount of time you'll give you client to receive and process the response from the server.

In case you're send back and forth "normal" messages, both can be pretty short - especially the receiveTimeout, since receiving a SOAP message, decrypting, checking and deserializing it should take almost no time. The story is different with streaming - in that case, you might need more time on the client to actually complete the "download" of the stream you get back from the server.

There's also openTimeout, receiveTimeout, and closeTimeout. The MSDN docs on binding gives you more information on what these are for.

To get a serious grip on all the intricasies of WCF, I would strongly recommend you purchase the "Learning WCF" book by Michele Leroux Bustamante:

Learning WCF http://ecx.images-amazon.com/images/I/51GNuqUJq%2BL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg

and you also spend some time watching her 15-part "WCF Top to Bottom" screencast series - highly recommended!

For more advanced topics I recommend that you check out Juwal Lowy's Programming WCF Services book.

Programming WCF http://ecx.images-amazon.com/images/I/41odWcLoGAL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg

by anonymous   2017-08-20

See this series of web casts by Michelle Bustamonte.

If you are a beginner, this is one of the best sources to learn WCF.

You can also start with the book Learning WCF.

Also take a look at these SO posts -

Learning the basics of WCF

What is the best way to learn WCF?

Good and easy books/tutorials to learn WCF latest stuff

by anonymous   2017-08-20

Books:

Learning WCF: A Hands-on Guide by Michele Bustamante - very nice kick-off book with step-by-step tutorials. Michelle also has a series of webcasts published on MSDN.

Programming WCF Services by Juval Lowy - more systematic approach, for experienced web developers.

IDesign WCF Coding Standard

WCF Security Guidance from Microsoft P&P

Websites:

Getting Started Tutorial on MSDN

and offcourse TheBestProgrammersQandASiteEver :-)

by Richard Morgan   2017-08-20

While not an instant answer for you, I found the book Learning WCF very useful; in it there's a small section on versioning (which is similar to Craig McMurtry's advice posted by Espo). If you're looking for a general intro book, it's very good. Her website has lots of good stuff too: Das Blonde

Edit: No sure why her site isn't responding; it's been a while since I've visited, so maybe she shut it down. No sure.

by anonymous   2017-08-20

I guess you'll want to check WCF Membership provider. I posted a few months about it http://sgomez.blogspot.com/2007/12/wcf-membership-provider-sample.html follow the links and also I'd recommend the book Learning WCF by Michele LeRoux Bustamante.

Good luck! (you're gonna need it)

by anonymous   2017-08-20

Use WCF.

It allows you to expose a service using multiple protocols and multiple security contexts.

A very good resource for learning WCF is Michele Bustamante's book Learning WCF.

http://www.amazon.com/Learning-Hands-Michele-LeRoux-Bustamante/dp/0596101627 Note: If you do get this book, she has an updated version of Chapter 1 and an appendix on her website.

Her website is also a good source of up-to-date information: http://www.dasblonde.net/default.aspx